summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-03-29 20:42:00 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-03-29 20:42:00 +0100
commitb97fc2bd0f47b6c0cf47ab3c183ae81bee0cf3e3 (patch)
treedb8c781ae4156c5fcbc91129cce6b8dbae03255a /src/core
parent2571d17cb97e70114d671705ead2e53a96031ca2 (diff)
downloadweechat-b97fc2bd0f47b6c0cf47ab3c183ae81bee0cf3e3.zip
core: don't execute command scheduled by /repeat if the buffer does not exist any more
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-command.c8
1 files changed, 3 insertions, 5 deletions
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"