Mercurial > vim
comparison src/search.c @ 96:8f25c0d2210f
updated for version 7.0037
author | vimboss |
---|---|
date | Tue, 11 Jan 2005 21:30:59 +0000 |
parents | e474bae3795f |
children | 8ecb0db93e9a |
comparison
equal
deleted
inserted
replaced
95:a2081e6febb8 | 96:8f25c0d2210f |
---|---|
3122 */ | 3122 */ |
3123 if (incl(&curwin->w_cursor) == -1) | 3123 if (incl(&curwin->w_cursor) == -1) |
3124 return FAIL; | 3124 return FAIL; |
3125 if (include != (cls() == 0)) | 3125 if (include != (cls() == 0)) |
3126 { | 3126 { |
3127 if (fwd_word(1L, bigword, TRUE) == FAIL) | 3127 if (fwd_word(1L, bigword, TRUE) == FAIL && count > 1) |
3128 return FAIL; | 3128 return FAIL; |
3129 /* | 3129 /* |
3130 * If end is just past a new-line, we don't want to include | 3130 * If end is just past a new-line, we don't want to include |
3131 * the first character on the line | 3131 * the first character on the line. |
3132 * Put cursor on last char of white. | |
3132 */ | 3133 */ |
3133 if (oneleft() == FAIL) /* put cursor on last char of white */ | 3134 if (oneleft() == FAIL) |
3134 inclusive = FALSE; | 3135 inclusive = FALSE; |
3135 } | 3136 } |
3136 else | 3137 else |
3137 { | 3138 { |
3138 if (end_word(1L, bigword, TRUE, TRUE) == FAIL) | 3139 if (end_word(1L, bigword, TRUE, TRUE) == FAIL) |