mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-22 00:40:23 +00:00
Fix find and replace counter
This commit is contained in:
parent
7294424c3e
commit
4d1ad52405
1 changed files with 1 additions and 0 deletions
|
|
@ -492,6 +492,7 @@ func Replace(args []string) {
|
|||
to := from.Move(searchCount, view.Buf)
|
||||
adjust := Count(replace) - searchCount
|
||||
view.Buf.Replace(from, to, replace)
|
||||
found++
|
||||
if len(matches) > 1 {
|
||||
for _, match := range matches[1:] {
|
||||
found++
|
||||
|
|
|
|||
Loading…
Reference in a new issue