Mercurial > vim
comparison src/menu.c @ 693:05dc93b9c61f v7.0208
updated for version 7.0208
author | vimboss |
---|---|
date | Mon, 27 Feb 2006 00:11:10 +0000 |
parents | f1d46f948241 |
children | c78d973dce9e |
comparison
equal
deleted
inserted
replaced
692:a28f83d37113 | 693:05dc93b9c61f |
---|---|
2127 | 2127 |
2128 /* GEDDES: This is not perfect - but it is a | 2128 /* GEDDES: This is not perfect - but it is a |
2129 * quick way of detecting whether we are doing this from a | 2129 * quick way of detecting whether we are doing this from a |
2130 * selection - see if the range matches up with the visual | 2130 * selection - see if the range matches up with the visual |
2131 * select start and end. */ | 2131 * select start and end. */ |
2132 if ((curbuf->b_visual_start.lnum == eap->line1) | 2132 if ((curbuf->b_visual.vi_start.lnum == eap->line1) |
2133 && (curbuf->b_visual_end.lnum) == eap->line2) | 2133 && (curbuf->b_visual.vi_end.lnum) == eap->line2) |
2134 { | 2134 { |
2135 /* Set it up for visual mode - equivalent to gv. */ | 2135 /* Set it up for visual mode - equivalent to gv. */ |
2136 VIsual_mode = curbuf->b_visual_mode; | 2136 VIsual_mode = curbuf->b_visual.vi_mode; |
2137 tpos = curbuf->b_visual_end; | 2137 tpos = curbuf->b_visual.vi_end; |
2138 curwin->w_cursor = curbuf->b_visual_start; | 2138 curwin->w_cursor = curbuf->b_visual.vi_start; |
2139 curwin->w_curswant = curbuf->b_visual_curswant; | 2139 curwin->w_curswant = curbuf->b_visual.vi_curswant; |
2140 } | 2140 } |
2141 else | 2141 else |
2142 { | 2142 { |
2143 /* Set it up for line-wise visual mode */ | 2143 /* Set it up for line-wise visual mode */ |
2144 VIsual_mode = 'V'; | 2144 VIsual_mode = 'V'; |