]> git.lizzy.rs Git - micro.git/commitdiff
search case insensitive
authorCamille Scholtz <onodera@openmailbox.org>
Wed, 18 May 2016 16:11:11 +0000 (18:11 +0200)
committerCamille Scholtz <onodera@openmailbox.org>
Wed, 18 May 2016 16:11:11 +0000 (18:11 +0200)
cmd/micro/search.go

index 734c0712f9b200b04d3ccc567ad7e6c837b13df4..2815f15a7618332adc7e4f029d5a0ee9b8b07154 100644 (file)
@@ -83,7 +83,7 @@ func Search(searchStr string, v *View, down bool) {
        } else {
                str = text[:searchStart]
        }
-       r, err := regexp.Compile(searchStr)
+       r, err := regexp.Compile("(?i)" + searchStr)
        if err != nil {
                return
        }