diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_tricky.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index bc0152401..dbb01f483 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -1235,7 +1235,7 @@ get_comp_string(void) /* This is done when the lexer reached the word the cursor is on. */ tt = tokstr ? dupstring(tokstr) : NULL; - if (isset(RCQUOTES)) { + if (isset(RCQUOTES) && tt) { char *tt1, *e = tt + zlemetacs - wb; for (tt1 = tt; *tt1; tt1++) { if (*tt1 == Snull) { |