X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_console.h;fp=vg_console.h;h=d2f8d878edee8763179e2ab57d8d35b3ff4310ce;hb=127f6fa3df70c71f53199b32d4468c79e8bcd022;hp=c25dc6fa1ab5836f631c1be5544127be57bab2f9;hpb=fd0975e04e296d06c1859d14f6826683ae252a7b;p=vg.git diff --git a/vg_console.h b/vg_console.h index c25dc6f..d2f8d87 100644 --- a/vg_console.h +++ b/vg_console.h @@ -459,7 +459,7 @@ VG_STATIC void console_update_suggestions(void) const char *args[8]; int token_count = vg_console_tokenize( vg_console.input, temp, args ); - + if( !token_count ) return; vg_console.suggestion_pastepos = args[token_count-1]-temp; /* Score all our commands and cvars */