# HG changeset patch # User Matti Hamalainen # Date 1337998189 -10800 # Node ID 733396469e5d4883473a0da2161a154dbf859223 # Parent a8373a1ce1eb5bf511d6e31d88578090cc9fda1e Cosmetic cleanups. diff -r a8373a1ce1eb -r 733396469e5d main.c --- a/main.c Sat May 26 05:09:40 2012 +0300 +++ b/main.c Sat May 26 05:09:49 2012 +0300 @@ -1412,9 +1412,9 @@ BOOL nn_tabcomplete_buffer(nn_editbuf_t *buf) { static char *previous = NULL, *pattern = NULL; + char *str = buf->data; BOOL again = FALSE, hasSeparator = FALSE, hasSpace, newPattern = FALSE, isCommand; - char *str = buf->data; size_t endPos, startPos = buf->pos; // previous word @@ -1456,7 +1456,7 @@ hasSeparator = TRUE; } - hasSpace = (buf->pos > 0 && str[buf->pos - 1] == ' ') || + hasSpace = (buf->pos > 0 && str[buf->pos - 1] == ' ') || (buf->pos <= buf->len && str[buf->pos] == ' '); if (newPattern)