aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-07-12 12:19:35 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-07-12 12:19:35 -0400
commitaa1f0aa829c0580e11e3afd0226b76fb3dd64089 (patch)
tree4801498f6ffc69416a52ac12d925d2c75a1b0b5d /src/textadept.c
parent3b7c1bc7e689cfbde7d6c4fcba8d946c0c930aa7 (diff)
downloadtextadept-aa1f0aa829c0580e11e3afd0226b76fb3dd64089.tar.gz
textadept-aa1f0aa829c0580e11e3afd0226b76fb3dd64089.zip
Fixed bug in highlighting found text in ncurses; src/textadept.c
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c3
1 files changed, 3 insertions, 0 deletions
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;
}