diff options
author | 2012-09-18 16:00:48 -0400 | |
---|---|---|
committer | 2012-09-18 16:00:48 -0400 | |
commit | c976b2b1899eb7dcff5c3adcae95b63fa08d9f93 (patch) | |
tree | 65729a283f16a4a42f4c9ef3f2b5fcdbcf97c858 /src/textadept.c | |
parent | 3b72be04bed765405be5df5f175bf7aef2620a58 (diff) | |
download | textadept-c976b2b1899eb7dcff5c3adcae95b63fa08d9f93.tar.gz textadept-c976b2b1899eb7dcff5c3adcae95b63fa08d9f93.zip |
Keep termios disabled in CDK objects; src/textadept.c
Diffstat (limited to 'src/textadept.c')
-rw-r--r-- | src/textadept.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textadept.c b/src/textadept.c index e956604e..39ebc344 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -380,6 +380,7 @@ static int lfind_focus(lua_State *L) { if (findbox) return 0; // already active wresize(scintilla_get_window(focused_view), LINES - 4, COLS); findbox = initCDKScreen(newwin(2, 0, LINES - 3, 0)); + tcsetattr(0, TCSANOW, &term); int b_width = max(strlen(button_labels[0]), strlen(button_labels[1])) + max(strlen(button_labels[2]), strlen(button_labels[3])) + 3; int o_width = max(strlen(option_labels[0]), strlen(option_labels[1])) + @@ -430,7 +431,6 @@ static int lfind_focus(lua_State *L) { destroyCDKEntry(find_entry), destroyCDKEntry(replace_entry); destroyCDKButtonbox(buttonbox), destroyCDKButtonbox(optionbox); delwin(findbox->window), destroyCDKScreen(findbox), findbox = NULL; - tcsetattr(0, TCSANOW, &term); wresize(scintilla_get_window(focused_view), LINES - 2, COLS); #endif return 0; @@ -568,6 +568,7 @@ static int lce_focus(lua_State *L) { #elif NCURSES if (command_entry) return 0; // already active CDKSCREEN *screen = initCDKScreen(newwin(1, 0, LINES - 2, 0)); + tcsetattr(0, TCSANOW, &term); command_entry = newCDKEntry(screen, LEFT, TOP, NULL, NULL, A_NORMAL, '_', vMIXED, 0, 0, 256, FALSE, FALSE); bindCDKObject(vENTRY, command_entry, KEY_TAB, c_keypress, NULL); @@ -584,7 +585,6 @@ static int lce_focus(lua_State *L) { free(clipboard), free(GPasteBuffer), GPasteBuffer = NULL; destroyCDKEntry(command_entry), command_entry = NULL; delwin(screen->window), destroyCDKScreen(screen); - tcsetattr(0, TCSANOW, &term); #endif return 0; } |