display dmenu multisel accurately

This commit is contained in:
sewn 2024-09-12 17:31:44 +03:00
parent beafbc6458
commit da22980093
No known key found for this signature in database

6
mew.c
View file

@ -613,9 +613,13 @@ keyboard_keypress(enum wl_keyboard_key_state state, xkb_keysym_t sym, int ctrl,
case XKB_KEY_Return:
case XKB_KEY_KP_Enter:
submit((sel && !shift) ? sel->text : text);
if (!ctrl && submit != exec_cmd)
if (!ctrl && submit != exec_cmd) {
running = 0;
return;
}
if (sel)
sel->out = 1;
break;
case XKB_KEY_Right:
case XKB_KEY_KP_Right:
if (text[cursor] != '\0') {