Mercurial > vim
comparison src/buffer.c @ 1092:8531f7ee3662 v7.0.218
updated for version 7.0-218
author | vimboss |
---|---|
date | Thu, 15 Mar 2007 21:54:01 +0000 |
parents | 342d2b3a072a |
children | 184d2020d8f1 |
comparison
equal
deleted
inserted
replaced
1091:f9366d458bd0 | 1092:8531f7ee3662 |
---|---|
3708 break; | 3708 break; |
3709 | 3709 |
3710 case STL_BYTEVAL_X: | 3710 case STL_BYTEVAL_X: |
3711 base = 'X'; | 3711 base = 'X'; |
3712 case STL_BYTEVAL: | 3712 case STL_BYTEVAL: |
3713 if (((State & INSERT) && wp == curwin) || empty_line) | 3713 if (wp->w_cursor.col > STRLEN(linecont)) |
3714 num = 0; | 3714 num = 0; |
3715 else | 3715 else |
3716 { | 3716 { |
3717 #ifdef FEAT_MBYTE | 3717 #ifdef FEAT_MBYTE |
3718 num = (*mb_ptr2char)(linecont + wp->w_cursor.col); | 3718 num = (*mb_ptr2char)(linecont + wp->w_cursor.col); |