mirror of
https://github.com/irssi/irssi.git
synced 2026-08-24 11:02:21 +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)) {
|
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