Add newline to history clear message for consistency

This commit is contained in:
Eamon Caton 2020-05-06 20:30:08 -07:00 committed by David Adam
parent c2942a70d6
commit b665604475
11 changed files with 12 additions and 11 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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