Use rope substring instead of report

This commit is contained in:
Zachary Yedidia
2016-05-07 10:57:40 -04:00
parent 8670a03973
commit 29ae840413
4 changed files with 14 additions and 13 deletions

View File

@@ -141,7 +141,7 @@ func HandleCommand(input string, view *View) {
found := false
for {
match := regex.FindStringIndex(view.Buf.Text)
match := regex.FindStringIndex(view.Buf.String())
if match == nil {
break
}