Mercurial > vim
diff src/edit.c @ 683:a39b8af64334
updated for version 7.0205
author | vimboss |
---|---|
date | Thu, 23 Feb 2006 21:32:16 +0000 |
parents | 9364d114ed8d |
children | a28f83d37113 |
line wrap: on
line diff
--- a/src/edit.c +++ b/src/edit.c @@ -713,8 +713,8 @@ edit(cmdchar, startln, count) continue; } - /* A printable character: Add it to "compl_leader". */ - if (vim_isprintc(c)) + /* A printable, non-white character: Add to "compl_leader". */ + if (vim_isprintc(c) && !vim_iswhite(c)) { ins_compl_addleader(c); continue; @@ -3696,7 +3696,10 @@ ins_compl_delete() ins_compl_insert() { ins_bytes(compl_shown_match->cp_str + curwin->w_cursor.col - compl_col); - compl_used_match = TRUE; + if (compl_shown_match->cp_flags & ORIGINAL_TEXT) + compl_used_match = FALSE; + else + compl_used_match = TRUE; } /*