Simplify eval for tempmarks option (#1571)

This commit is contained in:
Joe Lim authored and GitHub committed 2024-01-13 13:40:02 +01:00
1 parent ce32bc67b9
commit 6af25565d4
1 file changed
+1 -5
+1 -5
View File
@@ -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":