mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
Empty lines can be now sent to /EXEC -interactive windows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2849 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
da1252cf2c
commit
80cc61b63f
5 changed files with 20 additions and 23 deletions
|
|
@ -199,12 +199,6 @@ static void event_command(const char *data)
|
|||
{
|
||||
const char *cmdchar;
|
||||
|
||||
if (*data == '\0') {
|
||||
/* empty line, forget it. */
|
||||
signal_stop();
|
||||
return;
|
||||
}
|
||||
|
||||
/* save current command line */
|
||||
current_cmdline = data;
|
||||
|
||||
|
|
@ -213,10 +207,12 @@ static void event_command(const char *data)
|
|||
last_command_cmd = command_cmd;
|
||||
|
||||
g_get_current_time(&time_command_now);
|
||||
command_cmd = strchr(settings_get_str("cmdchars"), *data) != NULL;
|
||||
command_cmd = *data != '\0' &&
|
||||
strchr(settings_get_str("cmdchars"), *data) != NULL;
|
||||
|
||||
/* /^command hides the output of the command */
|
||||
cmdchar = strchr(settings_get_str("cmdchars"), *data);
|
||||
cmdchar = *data == '\0' ? NULL :
|
||||
strchr(settings_get_str("cmdchars"), *data);
|
||||
if (cmdchar != NULL && (data[1] == '^' ||
|
||||
(data[1] == *cmdchar && data[2] == '^'))) {
|
||||
command_hide_output = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue