Simplify eval for tempmarks option (#1571)
This commit is contained in:
1 parent
ce32bc67b9
commit
6af25565d4
1 file changed
+1
-5
@@ -840,11 +840,7 @@ func (e *setExpr) eval(app *app, args []string) {
|
|||||||
case "tagfmt":
|
case "tagfmt":
|
||||||
gOpts.tagfmt = e.val
|
gOpts.tagfmt = e.val
|
||||||
case "tempmarks":
|
case "tempmarks":
|
||||||
if e.val != "" {
|
gOpts.tempmarks = "'" + e.val
|
||||||
gOpts.tempmarks = "'" + e.val
|
|
||||||
} else {
|
|
||||||
gOpts.tempmarks = "'"
|
|
||||||
}
|
|
||||||
case "timefmt":
|
case "timefmt":
|
||||||
gOpts.timefmt = e.val
|
gOpts.timefmt = e.val
|
||||||
case "truncatechar":
|
case "truncatechar":
|
||||||
|
|||||||
Reference in new issue
Block a user