mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 14:40:20 +09:00
Fix find and replace counter
This commit is contained in:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user