Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

Typing causes cursor to flash, disappear and reappear

Open craigo- opened this issue 2 years ago • 4 comments

In a pristinely unpacked version of Notepad3, when the mouse pointer is placed inside the Notepad3 window and you begin to type, the cursor flashes, disappears and reappears. If you stop typing, the cursor may be present or entirely absent. Moving the mouse makes an absent mouse cursor reappear.

This behaviour began in version 6.23.619.1 beta, and is present up until the most recent test build to date (6.23.718.1 rc). The behaviour does not occur in version 6.23.616.1 beta.

craigo- avatar Jul 22 '23 10:07 craigo-

Not a bug, see https://sourceforge.net/p/scintilla/bugs/2333/

zufuliu avatar Mar 31 '24 00:03 zufuliu

Just to reiterate, it's not that the mouse pointer disappears. It's that the mouse pointer disappears and reappears randomly after keytrokes.

I checked the current version of Notepad3 alongside two other Scintilla-based text editors, and how they respected the "Hide pointer while typing" setting in Windows. Here is what I found.

Software & Version Hide pointer while typing: ON Hide pointer while typing: OFF
Notepad++ 8.6.5 Pointer invisible while typing Pointer always visible
SciTE 5.4.3 Pointer invisible while typing Pointer always visible
Notepad3 6.24.312.1 rc3 Pointer disappears and reappears while typing Pointer always visible

i.e. with "Hide pointer while typing" turned on, Notepad3's behaviour is inconsistent in a way that does not show on the other Scintilla-based editors. I don't think this is a Scintilla bug, I believe it's a bug in the Notepad3 code.

craigo- avatar Mar 31 '24 04:03 craigo-

Just fixed (or work round) the same bug in Notepad2 by disable WM_SETREDRAW and InvalidateRect for statusbar updating on typing. Similar change may fix the bug in Notepad3.

zufuliu avatar Mar 31 '24 07:03 zufuliu

how they respected the "Hide pointer while typing" setting in Windows.

In the following image, the location of this setting in Windows.

2024-03-31_200927

hpwamr avatar Mar 31 '24 18:03 hpwamr

Hello @craigo- ,

Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_6.24.522.1_rc3.paf" or newer, see in issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.

Also, feel free to test the "BETA/RC Setup", version "Notepad3_6.24.522.1_rc3_Setup" or newer, see the 2nd list in issue #1129.

Comments and suggestions are welcome... 😃

hpwamr avatar May 22 '24 21:05 hpwamr

Confirmed fixed in version 6.24.522.1 rc3 - thank you 👍

craigo- avatar May 22 '24 21:05 craigo-