Skip to content

Commit f479c90

Browse files
committed
Fix set_tab_title without prefilling not working
1 parent 0ddad74 commit f479c90

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

kitty/boss.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2381,7 +2381,10 @@ def set_tab_title(self, title: str | None = None) -> None:
23812381
if (w := self.window_id_map.get(tab.renaming_in_window)) is not None and w in tab:
23822382
tab.set_active_window(w)
23832383
return
2384-
prefilled = (tab.name or tab.title).strip()
2384+
if title in ('" "', "' '"):
2385+
prefilled = ''
2386+
else:
2387+
prefilled = (tab.name or tab.title).strip()
23852388
tab_id = tab.id
23862389

23872390
def on_rename_done(new_title: str) -> None:

0 commit comments

Comments
 (0)