From b665604475ff3a130d168478452737c35c950f7b Mon Sep 17 00:00:00 2001 From: Eamon Caton Date: Wed, 6 May 2020 20:30:08 -0700 Subject: [PATCH] Add newline to history clear message for consistency --- CHANGELOG.md | 1 + po/de.po | 2 +- po/en.po | 2 +- po/fr.po | 4 ++-- po/nb.po | 2 +- po/nn.po | 2 +- po/pl.po | 2 +- po/pt_BR.po | 2 +- po/sv.po | 2 +- po/zh_CN.po | 2 +- share/functions/history.fish | 2 +- 11 files changed, 12 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91f1a67fb..3b51de43f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ - The default and example prompts print the correct exit status for commands prefixed with `not` (#6566). #### Improved terminal output +- After clearing command history, success message ends in newline. #### Completions - Added completions for diff --git a/po/de.po b/po/de.po index cab38b55e..1ca51b197 100644 --- a/po/de.po +++ b/po/de.po @@ -3593,7 +3593,7 @@ msgid "" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:5 -msgid "Command history cleared!" +msgid "Command history cleared!\\n" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:6 diff --git a/po/en.po b/po/en.po index ebaa359c2..66020a93a 100644 --- a/po/en.po +++ b/po/en.po @@ -3584,7 +3584,7 @@ msgid "" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:5 -msgid "Command history cleared!" +msgid "Command history cleared!\\n" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:6 diff --git a/po/fr.po b/po/fr.po index 533b7f664..3503d1a04 100644 --- a/po/fr.po +++ b/po/fr.po @@ -3802,8 +3802,8 @@ msgstr "" "interactive sera effacé\\n" #: /tmp/fish/explicit/share/functions/history.fish:5 -msgid "Command history cleared!" -msgstr "Historique de commande effacé !" +msgid "Command history cleared!\\n" +msgstr "Historique de commande effacé !\\n" #: /tmp/fish/explicit/share/functions/history.fish:6 msgid "You did not say 'yes' so I will not clear your command history\\n" diff --git a/po/nb.po b/po/nb.po index 6a6c893d1..dce3ade75 100644 --- a/po/nb.po +++ b/po/nb.po @@ -3559,7 +3559,7 @@ msgid "" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:5 -msgid "Command history cleared!" +msgid "Command history cleared!\\n" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:6 diff --git a/po/nn.po b/po/nn.po index f203ca28c..01cabc0ce 100644 --- a/po/nn.po +++ b/po/nn.po @@ -3559,7 +3559,7 @@ msgid "" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:5 -msgid "Command history cleared!" +msgid "Command history cleared!\\n" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:6 diff --git a/po/pl.po b/po/pl.po index 4aa431497..eefd7abdb 100644 --- a/po/pl.po +++ b/po/pl.po @@ -3582,7 +3582,7 @@ msgid "" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:5 -msgid "Command history cleared!" +msgid "Command history cleared!\\n" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:6 diff --git a/po/pt_BR.po b/po/pt_BR.po index ec55ebcc0..69110a68c 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -3588,7 +3588,7 @@ msgid "" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:5 -msgid "Command history cleared!" +msgid "Command history cleared!\\n" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:6 diff --git a/po/sv.po b/po/sv.po index 7151eb8aa..df482f35e 100644 --- a/po/sv.po +++ b/po/sv.po @@ -3537,7 +3537,7 @@ msgid "" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:5 -msgid "Command history cleared!" +msgid "Command history cleared!\\n" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:6 diff --git a/po/zh_CN.po b/po/zh_CN.po index c2caf4649..b1729b742 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -3558,7 +3558,7 @@ msgid "" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:5 -msgid "Command history cleared!" +msgid "Command history cleared!\\n" msgstr "" #: /tmp/fish/explicit/share/functions/history.fish:6 diff --git a/share/functions/history.fish b/share/functions/history.fish index 4d81580d5..0e0227675 100644 --- a/share/functions/history.fish +++ b/share/functions/history.fish @@ -183,7 +183,7 @@ function history --description "display or manipulate interactive command histor read --local --prompt "echo 'Are you sure you want to clear history? (yes/no) '" choice if test "$choice" = yes builtin history clear -- $argv - and printf (_ "Command history cleared!") + and printf (_ "Command history cleared!\n") else printf (_ "You did not say 'yes' so I will not clear your command history\n") end