diff src/term.c @ 1394:1002128c68db v7.1.109

updated for version 7.1-109
author vimboss
date Sat, 15 Sep 2007 12:07:46 +0000
parents dc65bb5de20e
children 220a9309067d
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -4809,6 +4809,8 @@ check_termcode(max_offset, buf, buflen)
 	    if (num_bytes == -1)
 		return -1;
 	    current_tab = (int)bytes[0];
+	    if (current_tab == 255)	/* -1 in a byte gives 255 */
+		current_tab = -1;
 	    slen += num_bytes;
 	}
 	else if (key_name[0] == (int)KS_TABMENU)