mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-20 07:50:25 +00:00
Fix "no" when replacing with empty string (#2641)
* advance to end of found string when not replacing * simplify search location change
This commit is contained in:
parent
87ad67ada7
commit
5d3dbde698
1 changed files with 1 additions and 2 deletions
|
|
@ -853,8 +853,7 @@ func (h *BufPane) ReplaceCmd(args []string) {
|
|||
h.Cursor.Loc = searchLoc
|
||||
nreplaced++
|
||||
} else if !canceled && !yes {
|
||||
searchLoc = locs[0]
|
||||
searchLoc.X += util.CharacterCount(replace)
|
||||
searchLoc = locs[1]
|
||||
} else if canceled {
|
||||
h.Cursor.ResetSelection()
|
||||
h.Buf.RelocateCursors()
|
||||
|
|
|
|||
Loading…
Reference in a new issue