summaryrefslogtreecommitdiffstats
path: root/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 75988eb8..76f25aaa 100644
--- a/terminal.c
+++ b/terminal.c
@@ -456,7 +456,8 @@ term_pescape(struct termp *p, const char *word, int *i, int len)
}
} else if ('f' == word[*i]) {
- if (++(*i) >= len)
+ (*i)++;
+ if (*i >= len)
return;
switch (word[*i]) {
case ('B'):