summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 7846e662..386e0850 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -2762,7 +2762,10 @@ func parsePlaceholder(match string) (bool, string, placeholderFlags) {
func hasPreviewFlags(template string) (slot bool, plus bool, forceUpdate bool) {
for _, match := range placeholder.FindAllString(template, -1) {
- _, _, flags := parsePlaceholder(match)
+ escaped, _, flags := parsePlaceholder(match)
+ if escaped {
+ continue
+ }
if flags.plus {
plus = true
}