From 7535dd8496c085953b687e4771c70e6812489eef Mon Sep 17 00:00:00 2001 From: mitchell Date: Wed, 20 Oct 2021 15:37:18 -0400 Subject: Ensure the terminal cursor is visible for Find and Replace. The latest Scinterm hg hides the cursor when the Scintilla caret is out of view. --- src/textadept.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/textadept.c b/src/textadept.c index 85076391..a4ab9ef6 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -438,6 +438,7 @@ static int focus_find(lua_State *L) { setCDKEntryPostProcess(find_entry, find_keypress, NULL); char *clipboard = scintilla_get_clipboard(focused_view, NULL); GPasteBuffer = copyChar(clipboard); // set the CDK paste buffer + curs_set(1); // ensure visible, even if cursor is out of view in focused_view refreshCDKScreen(findbox), activateCDKEntry(focused_entry = find_entry, NULL); while (focused_entry->exitType == vNORMAL || focused_entry->exitType == vNEVER_ACTIVATED) { copyfree(&find_text, getCDKEntryValue(find_entry)); -- cgit v1.2.3