mirror of
https://github.com/irssi/irssi.git
synced 2026-08-24 02:52:20 +02:00
Fix glib warnings when tab completing in weird places
See github issue #125 for more details (or flyspray issue 124, submitted 10 years ago)
This commit is contained in:
parent
d40c0704f0
commit
50ace4e250
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)) {
|
||||
/* empty space at the start of line */
|
||||
if (wordstart == line)
|
||||
wordstart += strlen(wordstart);
|
||||
while (wordstart != '\0' && isseparator(wordstart))
|
||||
wordstart++;
|
||||
} else {
|
||||
while (wordstart > line && isseparator(wordstart[-1]))
|
||||
wordstart--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue