From be97544e8b09f641f7de08612b4be740eeffa494 Mon Sep 17 00:00:00 2001 From: raziman Date: Fri, 19 Feb 2021 10:25:01 +0800 Subject: [PATCH] run go fmt --- popup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popup.go b/popup.go index 62b115f..82185b5 100644 --- a/popup.go +++ b/popup.go @@ -394,7 +394,7 @@ func searchPopup(title string, stringsToMatch []string, handler func(selected st matchrune := []rune(match.Str) matchruneIndexes := match.MatchedIndexes for i := 0; i < len(match.MatchedIndexes); i++ { - matchruneIndexes[i] = + matchruneIndexes[i] = utf8.RuneCountInString(match.Str[0:match.MatchedIndexes[i]]) } for i := 0; i < len(matchrune); i++ {