mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Set window title
This commit is contained in:
@@ -50,6 +50,11 @@ type Handler struct {
|
||||
|
||||
func (h *Handler) draw_screen() (err error) {
|
||||
matches, in_progress := h.get_results()
|
||||
if len(matches) > 0 {
|
||||
h.lp.SetWindowTitle(matches[0].text)
|
||||
} else {
|
||||
h.lp.SetWindowTitle("Select a file") // TODO: make this conditional on mode
|
||||
}
|
||||
h.lp.StartAtomicUpdate()
|
||||
defer h.lp.EndAtomicUpdate()
|
||||
h.lp.ClearScreen()
|
||||
|
||||
Reference in New Issue
Block a user