mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +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
|
|
@ -931,7 +931,15 @@ static void event_text(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
|
|||
char *line, *str;
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
if (item == NULL) return;
|
||||
|
||||
if (item == NULL)
|
||||
return;
|
||||
|
||||
if (*data == '\0') {
|
||||
/* empty line, forget it. */
|
||||
signal_stop();
|
||||
return;
|
||||
}
|
||||
|
||||
line = settings_get_bool("expand_escapes") ?
|
||||
expand_escapes(data, server, item) : g_strdup(data);
|
||||
|
|
@ -1003,10 +1011,11 @@ void chat_completion_init(void)
|
|||
settings_add_bool("completion", "completion_auto", FALSE);
|
||||
settings_add_int("completion", "completion_keep_publics", 50);
|
||||
settings_add_int("completion", "completion_keep_privates", 10);
|
||||
settings_add_bool("completion", "expand_escapes", FALSE);
|
||||
settings_add_bool("completion", "completion_nicks_lowercase", FALSE);
|
||||
settings_add_bool("completion", "completion_strict", FALSE);
|
||||
|
||||
settings_add_bool("lookandfeel", "expand_escapes", FALSE);
|
||||
|
||||
read_settings();
|
||||
signal_add("complete word", (SIGNAL_FUNC) sig_complete_word);
|
||||
signal_add("complete command msg", (SIGNAL_FUNC) sig_complete_msg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue