From aa1f0aa829c0580e11e3afd0226b76fb3dd64089 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 12 Jul 2012 12:19:35 -0400 Subject: Fixed bug in highlighting found text in ncurses; src/textadept.c --- src/textadept.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index 411a049a..5088557f 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -366,6 +366,7 @@ static int lfind_focus(lua_State *L) { #elif NCURSES #define max(a, b) (((a) > (b)) ? (a) : (b)) if (findbox) return 0; // already active + wresize(scintilla_get_window(focused_view), LINES - 4, COLS); findbox = initCDKScreen(newwin(2, 0, LINES - 3, 0)); int b_width = max(strlen(button_labels[0]), strlen(button_labels[1])) + max(strlen(button_labels[2]), strlen(button_labels[3])) + 3; @@ -401,12 +402,14 @@ static int lfind_focus(lua_State *L) { fcopy(&find_text, getCDKEntryValue(find_entry)); fcopy(&repl_text, getCDKEntryValue(replace_entry)); f_clicked(getCDKButtonboxCurrentButton(buttonbox), NULL); + scintilla_refresh(focused_view); } curs_set(0); 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; } -- cgit v1.2.3