mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Merge branch 'master' into plugins
This commit is contained in:
commit
ddebfaae64
@ -581,7 +581,6 @@ muc_autocomplete(char *input, int *size)
|
|||||||
result = autocomplete_complete(nick_ac, input);
|
result = autocomplete_complete(nick_ac, input);
|
||||||
} else {
|
} else {
|
||||||
int len = (last_space - input);
|
int len = (last_space - input);
|
||||||
cons_debug("SIZE: %d", len);
|
|
||||||
char *start_str = strndup(input, len);
|
char *start_str = strndup(input, len);
|
||||||
result = autocomplete_param_with_ac(input, size, start_str, nick_ac);
|
result = autocomplete_param_with_ac(input, size, start_str, nick_ac);
|
||||||
free(start_str);
|
free(start_str);
|
||||||
|
@ -512,11 +512,12 @@ _handle_edit(int result, const wint_t ch, char *input, int *size)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
case 9: // tab
|
case 9: // tab
|
||||||
if ((strncmp(input, "/", 1) != 0) && (ui_current_win_type() == WIN_MUC)) {
|
if (*size != 0) {
|
||||||
cons_debug("MUC AC");
|
if ((strncmp(input, "/", 1) != 0) && (ui_current_win_type() == WIN_MUC)) {
|
||||||
muc_autocomplete(input, size);
|
muc_autocomplete(input, size);
|
||||||
} else {
|
} else if (strncmp(input, "/", 1) == 0) {
|
||||||
cmd_autocomplete(input, size);
|
cmd_autocomplete(input, size);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user