Mercurial > vim
comparison src/ex_cmds.c @ 3394:8e0fe5a723ad v7.3.463
updated for version 7.3.463
Problem: When using ":s///c" the cursor is moved away from the match.
(Lawman)
Solution: Don't move the cursor when do_ask is set. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 07 Mar 2012 14:57:52 +0100 |
parents | 9ccdc4a69d8f |
children | 3465a9e77588 |
comparison
equal
deleted
inserted
replaced
3393:f1f6ac67acd8 | 3394:8e0fe5a723ad |
---|---|
5149 curbuf->b_op_end.lnum = line2; | 5149 curbuf->b_op_end.lnum = line2; |
5150 curbuf->b_op_start.col = curbuf->b_op_end.col = 0; | 5150 curbuf->b_op_start.col = curbuf->b_op_end.col = 0; |
5151 | 5151 |
5152 if (!global_busy) | 5152 if (!global_busy) |
5153 { | 5153 { |
5154 if (endcolumn) | 5154 if (!do_ask) /* when interactive leave cursor on the match */ |
5155 coladvance((colnr_T)MAXCOL); | 5155 { |
5156 else | 5156 if (endcolumn) |
5157 beginline(BL_WHITE | BL_FIX); | 5157 coladvance((colnr_T)MAXCOL); |
5158 else | |
5159 beginline(BL_WHITE | BL_FIX); | |
5160 } | |
5158 if (!do_sub_msg(do_count) && do_ask) | 5161 if (!do_sub_msg(do_count) && do_ask) |
5159 MSG(""); | 5162 MSG(""); |
5160 } | 5163 } |
5161 else | 5164 else |
5162 global_need_beginline = TRUE; | 5165 global_need_beginline = TRUE; |