comparison src/search.c @ 6434:19726451aabe v7.4.547

updated for version 7.4.547 Problem: Using "vit" does not select a multi-byte character at the end correctly. Solution: Advance the cursor over the multi-byte character. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Sat, 13 Dec 2014 20:11:33 +0100
parents f673842874b6
children eb0fb921e197
comparison
equal deleted inserted replaced
6433:9d61516ed8e5 6434:19726451aabe
3930 /* If the end is before the start there is no text between tags, select 3930 /* If the end is before the start there is no text between tags, select
3931 * the char under the cursor. */ 3931 * the char under the cursor. */
3932 if (lt(end_pos, start_pos)) 3932 if (lt(end_pos, start_pos))
3933 curwin->w_cursor = start_pos; 3933 curwin->w_cursor = start_pos;
3934 else if (*p_sel == 'e') 3934 else if (*p_sel == 'e')
3935 ++curwin->w_cursor.col; 3935 inc_cursor();
3936 VIsual = start_pos; 3936 VIsual = start_pos;
3937 VIsual_mode = 'v'; 3937 VIsual_mode = 'v';
3938 redraw_curbuf_later(INVERTED); /* update the inversion */ 3938 redraw_curbuf_later(INVERTED); /* update the inversion */
3939 showmode(); 3939 showmode();
3940 } 3940 }