core: don't execute command scheduled by /repeat if the buffer does not exist any more

v2.8-utf8proc
Sébastien Helleu 2019-03-29 20:42:00 +01:00
parent 2571d17cb9
commit b97fc2bd0f
21 changed files with 52 additions and 41 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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