Mercurial > vim
comparison src/edit.c @ 908:bd7e26d05a3f v7.0.034
updated for version 7.0-034
author | vimboss |
---|---|
date | Fri, 23 Jun 2006 15:59:09 +0000 |
parents | 2e1e9b708941 |
children | 073f98f45a44 |
comparison
equal
deleted
inserted
replaced
907:5e168526af25 | 908:bd7e26d05a3f |
---|---|
3018 | 3018 |
3019 /* Stop completion when the whole word was deleted. */ | 3019 /* Stop completion when the whole word was deleted. */ |
3020 if ((int)(p - line) - (int)compl_col <= 0) | 3020 if ((int)(p - line) - (int)compl_col <= 0) |
3021 return K_BS; | 3021 return K_BS; |
3022 | 3022 |
3023 /* For redo we need to repeat this backspace. */ | |
3024 AppendCharToRedobuff(K_BS); | |
3025 | |
3026 /* Deleted more than what was used to find matches or didn't finish | 3023 /* Deleted more than what was used to find matches or didn't finish |
3027 * finding all matches: need to look for matches all over again. */ | 3024 * finding all matches: need to look for matches all over again. */ |
3028 if (curwin->w_cursor.col <= compl_col + compl_length | 3025 if (curwin->w_cursor.col <= compl_col + compl_length |
3029 || compl_was_interrupted) | 3026 || compl_was_interrupted) |
3030 ins_compl_restart(); | 3027 ins_compl_restart(); |
3119 ins_char_bytes(buf, cc); | 3116 ins_char_bytes(buf, cc); |
3120 } | 3117 } |
3121 else | 3118 else |
3122 #endif | 3119 #endif |
3123 ins_char(c); | 3120 ins_char(c); |
3124 | |
3125 /* For redo we need to count this character so that the number of | |
3126 * backspaces is correct. */ | |
3127 AppendCharToRedobuff(c); | |
3128 | 3121 |
3129 /* If we didn't complete finding matches we must search again. */ | 3122 /* If we didn't complete finding matches we must search again. */ |
3130 if (compl_was_interrupted) | 3123 if (compl_was_interrupted) |
3131 ins_compl_restart(); | 3124 ins_compl_restart(); |
3132 | 3125 |