Or let's rather do it like this

This commit is contained in:
Přemysl Eric Janouch 2015-02-01 22:44:16 +01:00
parent 08ed996fe1
commit 6e42b07d20
1 changed files with 1 additions and 3 deletions

View File

@ -1004,9 +1004,8 @@ app_process_keysym (Application *self, termo_key_t *event)
[TERMO_SYM_RIGHT] = USER_ACTION_INPUT_RIGHT, [TERMO_SYM_RIGHT] = USER_ACTION_INPUT_RIGHT,
[TERMO_SYM_BACKSPACE] = USER_ACTION_INPUT_DELETE_PREVIOUS, [TERMO_SYM_BACKSPACE] = USER_ACTION_INPUT_DELETE_PREVIOUS,
// XXX: what's the difference? [TERMO_SYM_DEL] = USER_ACTION_INPUT_DELETE_PREVIOUS,
[TERMO_SYM_DELETE] = USER_ACTION_INPUT_DELETE_NEXT, [TERMO_SYM_DELETE] = USER_ACTION_INPUT_DELETE_NEXT,
[TERMO_SYM_DEL] = USER_ACTION_INPUT_DELETE_NEXT,
}; };
static ActionMap actions_alt = static ActionMap actions_alt =
{ {
@ -1249,7 +1248,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
if (!(app.tk = termo_new (STDIN_FILENO, NULL, 0))) if (!(app.tk = termo_new (STDIN_FILENO, NULL, 0)))
abort (); abort ();
termo_set_canonflags (app.tk, TERMO_CANON_DELBS);
if (!initscr () || nonl () == ERR) if (!initscr () || nonl () == ERR)
abort (); abort ();