diff options
-rw-r--r-- | ChangeLog.adoc | 2 | ||||
-rw-r--r-- | doc/de/autogen/user/weechat_commands.adoc | 2 | ||||
-rw-r--r-- | doc/en/autogen/user/weechat_commands.adoc | 2 | ||||
-rw-r--r-- | doc/fr/autogen/user/weechat_commands.adoc | 2 | ||||
-rw-r--r-- | doc/it/autogen/user/weechat_commands.adoc | 2 | ||||
-rw-r--r-- | doc/ja/autogen/user/weechat_commands.adoc | 2 | ||||
-rw-r--r-- | doc/pl/autogen/user/weechat_commands.adoc | 2 | ||||
-rw-r--r-- | po/cs.po | 5 | ||||
-rw-r--r-- | po/de.po | 5 | ||||
-rw-r--r-- | po/es.po | 5 | ||||
-rw-r--r-- | po/fr.po | 11 | ||||
-rw-r--r-- | po/hu.po | 5 | ||||
-rw-r--r-- | po/it.po | 5 | ||||
-rw-r--r-- | po/ja.po | 5 | ||||
-rw-r--r-- | po/pl.po | 5 | ||||
-rw-r--r-- | po/pt.po | 5 | ||||
-rw-r--r-- | po/pt_BR.po | 5 | ||||
-rw-r--r-- | po/ru.po | 5 | ||||
-rw-r--r-- | po/tr.po | 5 | ||||
-rw-r--r-- | po/weechat.pot | 5 | ||||
-rw-r--r-- | src/core/wee-command.c | 8 |
21 files changed, 52 insertions, 41 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 06b8df9cd..e02e89e0b 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -32,7 +32,7 @@ New features:: Bug fixes:: - * core: don't execute command scheduled by /wait if the buffer does not exist any more + * core: don't execute command scheduled by /repeat and /wait if the buffer does not exist any more * core: set max length to 4096 for /secure passphrase (issue #1323) * core: refilter only affected buffers on filter change (issue #1309, issue #1311) * fset: fix slow refresh of fset buffer during /reload (issue #1313) diff --git a/doc/de/autogen/user/weechat_commands.adoc b/doc/de/autogen/user/weechat_commands.adoc index e6e79ec79..8960ca7ce 100644 --- a/doc/de/autogen/user/weechat_commands.adoc +++ b/doc/de/autogen/user/weechat_commands.adoc @@ -766,7 +766,7 @@ Ohne Angabe von Argumenten werden alle Konfigurationen (WeeChat und Erweiterunge count: number of times to execute command command: command to execute (or text to send to buffer if command does not start with '/') -All commands are executed on buffer where this command was issued. +Note: the command is executed on buffer where /repeat was executed (if the buffer does not exist any more, the command is not executed). Example: scroll 2 pages up: diff --git a/doc/en/autogen/user/weechat_commands.adoc b/doc/en/autogen/user/weechat_commands.adoc index b3ce0491d..5f0be65d8 100644 --- a/doc/en/autogen/user/weechat_commands.adoc +++ b/doc/en/autogen/user/weechat_commands.adoc @@ -766,7 +766,7 @@ Without argument, all files (WeeChat and plugins) are reloaded. count: number of times to execute command command: command to execute (or text to send to buffer if command does not start with '/') -All commands are executed on buffer where this command was issued. +Note: the command is executed on buffer where /repeat was executed (if the buffer does not exist any more, the command is not executed). Example: scroll 2 pages up: diff --git a/doc/fr/autogen/user/weechat_commands.adoc b/doc/fr/autogen/user/weechat_commands.adoc index c8bd2ef8a..eb60605ab 100644 --- a/doc/fr/autogen/user/weechat_commands.adoc +++ b/doc/fr/autogen/user/weechat_commands.adoc @@ -766,7 +766,7 @@ Sans paramètre, tous les fichiers (WeeChat et extensions) sont rechargés. nombre : nombre de fois que la commande sera exécutée commande : commande à exécuter (ou texte à envoyer au tampon si la commande ne commence pas par '/') -Toutes les commandes sont exécutées sur le tampon où la commande a été lancée. +Note : la commande est exécutée sur le tampon où /repeat a été exécuté (si le tampon n'existe plus, la commande n'est pas exécutée). Exemple : faire défiler de 2 pages vers le haut : diff --git a/doc/it/autogen/user/weechat_commands.adoc b/doc/it/autogen/user/weechat_commands.adoc index 591f48a6f..fae3a4765 100644 --- a/doc/it/autogen/user/weechat_commands.adoc +++ b/doc/it/autogen/user/weechat_commands.adoc @@ -766,7 +766,7 @@ Senza argomento, vengono ricaricati tutti i file (WeeChat e plugin). count: number of times to execute command command: command to execute (or text to send to buffer if command does not start with '/') -All commands are executed on buffer where this command was issued. +Note: the command is executed on buffer where /repeat was executed (if the buffer does not exist any more, the command is not executed). Example: scroll 2 pages up: diff --git a/doc/ja/autogen/user/weechat_commands.adoc b/doc/ja/autogen/user/weechat_commands.adoc index caf79e098..b3ca450cf 100644 --- a/doc/ja/autogen/user/weechat_commands.adoc +++ b/doc/ja/autogen/user/weechat_commands.adoc @@ -766,7 +766,7 @@ file: リロードする設定ファイル (拡張子 ".conf" は不要) count: number of times to execute command command: command to execute (or text to send to buffer if command does not start with '/') -All commands are executed on buffer where this command was issued. +Note: the command is executed on buffer where /repeat was executed (if the buffer does not exist any more, the command is not executed). Example: scroll 2 pages up: diff --git a/doc/pl/autogen/user/weechat_commands.adoc b/doc/pl/autogen/user/weechat_commands.adoc index ff5b1d244..f7bdd6e04 100644 --- a/doc/pl/autogen/user/weechat_commands.adoc +++ b/doc/pl/autogen/user/weechat_commands.adoc @@ -766,7 +766,7 @@ Bez podania argumentu wszystkie pliki (WeeChat oraz wtyczki) zostaną przeładow count: number of times to execute command command: command to execute (or text to send to buffer if command does not start with '/') -All commands are executed on buffer where this command was issued. +Note: the command is executed on buffer where /repeat was executed (if the buffer does not exist any more, the command is not executed). Example: scroll 2 pages up: @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-03-17 18:32+0100\n" "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2305,7 +2305,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" @@ -24,7 +24,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-03-21 23:31+0100\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: German <kde-i18n-de@kde.org>\n" @@ -2735,7 +2735,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-03-17 16:04+0100\n" "Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2407,7 +2407,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" -"PO-Revision-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" +"PO-Revision-Date: 2019-03-29 20:41+0100\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -2665,7 +2665,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" @@ -2681,8 +2682,8 @@ msgstr "" "commande : commande à exécuter (ou texte à envoyer au tampon si la commande " "ne commence pas par '/')\n" "\n" -"Toutes les commandes sont exécutées sur le tampon où la commande a été " -"lancée.\n" +"Note : la commande est exécutée sur le tampon où /repeat a été exécuté (si " +"le tampon n'existe plus, la commande n'est pas exécutée).\n" "\n" "Exemple :\n" " faire défiler de 2 pages vers le haut :\n" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-02-28 20:18+0100\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2044,7 +2044,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-03-17 16:04+0100\n" "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2450,7 +2450,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-03-21 23:32+0100\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/weechat/tree/master/" @@ -2593,7 +2593,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-03-21 23:32+0100\n" "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n" "Language-Team: Polish <kde-i18n-doc@kde.org>\n" @@ -2644,7 +2644,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-03-21 23:33+0100\n" "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n" "Language-Team: Portuguese <>\n" @@ -2600,7 +2600,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" diff --git a/po/pt_BR.po b/po/pt_BR.po index a8a3ef30a..1ea8543b0 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-03-11 21:10+0100\n" "Last-Translator: Eduardo Elias <camponez@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2433,7 +2433,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-03-11 21:10+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2067,7 +2067,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2019-03-17 16:04+0100\n" "Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1864,7 +1864,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" diff --git a/po/weechat.pot b/po/weechat.pot index 4255b5940..f0995b4b3 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-03-29 20:36+0100\n" +"POT-Creation-Date: 2019-03-29 20:40+0100\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1862,7 +1862,8 @@ msgid "" "command: command to execute (or text to send to buffer if command does not " "start with '/')\n" "\n" -"All commands are executed on buffer where this command was issued.\n" +"Note: the command is executed on buffer where /repeat was executed (if the " +"buffer does not exist any more, the command is not executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" diff --git a/src/core/wee-command.c b/src/core/wee-command.c index cc2c5cfc9..e436eb475 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -5223,10 +5223,6 @@ command_repeat_timer_cb (const void *pointer, void *data, int remaining_calls) { /* search buffer, fallback to core buffer if not found */ ptr_buffer = gui_buffer_search_by_full_name (repeat_args[0]); - if (!ptr_buffer) - ptr_buffer = gui_buffer_search_main (); - - /* execute command */ if (ptr_buffer) (void) input_data (ptr_buffer, repeat_args[1], repeat_args[2]); } @@ -7917,7 +7913,9 @@ command_init () "command: command to execute (or text to send to buffer if command " "does not start with '/')\n" "\n" - "All commands are executed on buffer where this command was issued.\n" + "Note: the command is executed on buffer where /repeat was executed " + "(if the buffer does not exist any more, the command is not " + "executed).\n" "\n" "Example:\n" " scroll 2 pages up:\n" |