diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-06-04 22:55:00 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-06-04 22:55:00 -0400 |
commit | b3f9ab6697a9b8ec60577f1f0472e667502a5585 (patch) | |
tree | 4b292bd9b3ea9a75f1752513ec0b8afce791a996 /src | |
parent | c9cfabba75d94ef28174028f148b7ad2abb369fa (diff) |
Fixed curses autocomplete with the "Enter" key.
This reverts "Enter" to '\r' in Lua, so make a KEYSYM to retain '\n'.
Diffstat (limited to 'src')
-rw-r--r-- | src/textadept.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c index 8d8b1034..f3390dca 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2367,7 +2367,7 @@ int main(int argc, char **argv) { #else TermKeyResult res; TermKeyKey key; - int keysyms[] = {0,SCK_BACK,SCK_TAB,'\n',SCK_ESCAPE,0,0,SCK_UP,SCK_DOWN,SCK_LEFT,SCK_RIGHT,0,0,SCK_INSERT,SCK_DELETE,0,SCK_PRIOR,SCK_NEXT,SCK_HOME,SCK_END}; + int keysyms[] = {0,SCK_BACK,SCK_TAB,SCK_RETURN,SCK_ESCAPE,0,0,SCK_UP,SCK_DOWN,SCK_LEFT,SCK_RIGHT,0,0,SCK_INSERT,SCK_DELETE,0,SCK_PRIOR,SCK_NEXT,SCK_HOME,SCK_END}; while ((res = termkey_waitkey(tk, &key)) != TERMKEY_RES_EOF) { if (res == TERMKEY_RES_ERROR) continue; if (key.type == TERMKEY_TYPE_UNICODE) |