Skip to content

Commit

Permalink
Clarify text
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Feb 21, 2025
1 parent fb3c94b commit 5e75e06
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions kitty/boss.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,13 +974,14 @@ def close_windows_with_confirmation_msg(self, windows: Iterable[Window], active_
background_program = background_program or (q['cmdline'] or [''])[0]
if num := num_running_programs + num_background_programs:
if num_running_programs:
return ngettext(_('It is running: {}.'), _('It is running: {0} and {1} other programs.'), num_running_programs).format(
return ngettext(_('It is running: {0}.'), _('It is running: {0} and {1} other programs.'), num_running_programs).format(
green(running_program), num_running_programs - 1), num
if num_background_programs:
return ngettext(_('It is running in the background: {}.'), _('It is running in the background: {0} and {1} other programs.'),
num_background_programs).format(green(background_program), num_background_programs - 1) + ' ' + _(
'\n\nBackground programs should be run with the disown command'
' to allow them to continue running when the terminal is closed.'), num
return ngettext(_('It is running: {0} in the background.'), _(
'It is running: {0} in the background and {1} other programs.'),
num_background_programs).format(green(background_program), num_background_programs - 1) + ' ' + _(
'\n\nBackground programs should be run with the disown command'
' to allow them to continue running when the terminal is closed.'), num
return '', 0

@ac('win', '''
Expand Down

0 comments on commit 5e75e06

Please sign in to comment.