aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <none@none>2021-10-20 15:37:18 -0400
committermitchell <none@none>2021-10-20 15:37:18 -0400
commit7535dd8496c085953b687e4771c70e6812489eef (patch)
tree3729a1874c3b41ddb30dd5741aa455c14ecb3ad0
parente6ec78a666932ca55c269d4b13e2110531a2c9bb (diff)
downloadtextadept-7535dd8496c085953b687e4771c70e6812489eef.tar.gz
textadept-7535dd8496c085953b687e4771c70e6812489eef.zip
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.
-rw-r--r--src/textadept.c1
1 files changed, 1 insertions, 0 deletions
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));