summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/term.c b/term.c
index 057d5e2f..4ab35a2d 100644
--- a/term.c
+++ b/term.c
@@ -487,7 +487,10 @@ term_word(struct termp *p, const char *word)
default:
break;
}
+
word += sz;
+ if (DECO_NOSPACE == deco && '\0' == *word)
+ p->flags |= TERMP_NOSPACE;
}
if (sv[0] && 0 == sv[1])