Fix find and replace counter

This commit is contained in:
Zachary Yedidia
2017-02-20 18:33:44 -05:00
parent 7294424c3e
commit 4d1ad52405

View File

@@ -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++