When confirming close commands dont count windows sitting at shell prompts

This commit is contained in:
Kovid Goyal
2021-08-14 13:40:48 +05:30
parent 81654c9874
commit 2a634af2bc
5 changed files with 27 additions and 11 deletions

View File

@@ -454,6 +454,10 @@ class Window:
def current_colors(self) -> Dict:
return self.screen.color_profile.as_dict()
@property
def has_running_program(self) -> bool:
return not self.screen.cursor_at_prompt()
def matches(self, field: str, pat: MatchPatternType) -> bool:
if not pat:
return False