mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
committed by
Kovid Goyal
parent
f2734fcfbd
commit
3862ae26cc
@@ -112,15 +112,13 @@ func (h *Handler) render_match_with_positions(text string, add_ellipsis bool, po
|
|||||||
for chunk := range split_up_text(text, add_ellipsis, positions) {
|
for chunk := range split_up_text(text, add_ellipsis, positions) {
|
||||||
if chunk.text != "" {
|
if chunk.text != "" {
|
||||||
if chunk.emphasize {
|
if chunk.emphasize {
|
||||||
h.lp.QueueWriteString(prefix)
|
h.lp.QueueWriteString(prefix + chunk.text + suffix)
|
||||||
defer func() {
|
} else {
|
||||||
h.lp.QueueWriteString(suffix)
|
|
||||||
}()
|
|
||||||
}
|
|
||||||
h.lp.QueueWriteString(chunk.text)
|
h.lp.QueueWriteString(chunk.text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var icon_cache map[string]string
|
var icon_cache map[string]string
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user