Mercurial > vim
comparison src/search.c @ 1309:bb7a0b90100a v7.1.023
updated for version 7.1-023
author | vimboss |
---|---|
date | Tue, 10 Jul 2007 10:38:02 +0000 |
parents | 87a777aea899 |
children | a33e606ceea6 |
comparison
equal
deleted
inserted
replaced
1308:e70c0d863e0c | 1309:bb7a0b90100a |
---|---|
2793 */ | 2793 */ |
2794 last_line = (curwin->w_cursor.lnum == curbuf->b_ml.ml_line_count); | 2794 last_line = (curwin->w_cursor.lnum == curbuf->b_ml.ml_line_count); |
2795 i = inc_cursor(); | 2795 i = inc_cursor(); |
2796 if (i == -1 || (i >= 1 && last_line)) /* started at last char in file */ | 2796 if (i == -1 || (i >= 1 && last_line)) /* started at last char in file */ |
2797 return FAIL; | 2797 return FAIL; |
2798 if (i == 1 && eol && count == 0) /* started at last char in line */ | 2798 if (i >= 1 && eol && count == 0) /* started at last char in line */ |
2799 return OK; | 2799 return OK; |
2800 | 2800 |
2801 /* | 2801 /* |
2802 * Go one char past end of current word (if any) | 2802 * Go one char past end of current word (if any) |
2803 */ | 2803 */ |