changeset 451:733396469e5d

Cosmetic cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 26 May 2012 05:09:49 +0300
parents a8373a1ce1eb
children aeb3171f9e28
files main.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)