mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 00:08:04 +02:00
get rid of utils.Cut since we can now rely on strings.Cut instead
This commit is contained in:
@@ -76,7 +76,7 @@ func (self *Match) FormatForCompletionList(max_word_len int, f *markup.Context,
|
||||
return word
|
||||
}
|
||||
word_len := wcswidth.Stringwidth(word)
|
||||
line, _, _ := utils.Cut(strings.TrimSpace(desc), "\n")
|
||||
line, _, _ := strings.Cut(strings.TrimSpace(desc), "\n")
|
||||
desc = f.Prettify(line)
|
||||
|
||||
multiline := false
|
||||
|
||||
Reference in New Issue
Block a user