mirror of
https://github.com/irssi/irssi.git
synced 2026-08-23 10:32:31 +02:00
Merge 50ace4e250 into 6b08cbe906
This commit is contained in:
commit
e665209bcc
1 changed files with 2 additions and 1 deletions
|
|
@ -162,7 +162,8 @@ char *word_complete(WINDOW_REC *window, const char *line, int *pos, int erase, i
|
||||||
if (isseparator(*line)) {
|
if (isseparator(*line)) {
|
||||||
/* empty space at the start of line */
|
/* empty space at the start of line */
|
||||||
if (wordstart == line)
|
if (wordstart == line)
|
||||||
wordstart += strlen(wordstart);
|
while (wordstart != '\0' && isseparator(wordstart))
|
||||||
|
wordstart++;
|
||||||
} else {
|
} else {
|
||||||
while (wordstart > line && isseparator(wordstart[-1]))
|
while (wordstart > line && isseparator(wordstart[-1]))
|
||||||
wordstart--;
|
wordstart--;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue