]> git.lizzy.rs Git - micro.git/blobdiff - internal/buffer/search.go
Improve comments
[micro.git] / internal / buffer / search.go
index 5be3128bc3111f4894fb4b74bb0a145dc7a0fb89..0ab6d0c8fde49aca3b6bbbf0f13f6b0715352075 100644 (file)
@@ -91,10 +91,10 @@ func (b *Buffer) findUp(r *regexp.Regexp, start, end Loc) ([2]Loc, bool) {
                        l = util.SliceStart(l, end.X)
                }
 
-               all_matches := r.FindAllIndex(l, -1)
+               allMatches := r.FindAllIndex(l, -1)
 
-               if all_matches != nil {
-                       match := all_matches[len(all_matches)-1]
+               if allMatches != nil {
+                       match := allMatches[len(allMatches)-1]
                        start := Loc{charpos + util.RunePos(l, match[0]), i}
                        end := Loc{charpos + util.RunePos(l, match[1]), i}
                        return [2]Loc{start, end}, true