Notepad2e icon indicating copy to clipboard operation
Notepad2e copied to clipboard

Inconsistent behaviour in navigation on a line containing Japanese symbols

Open ProgerXP opened this issue 5 years ago • 5 comments
trafficstars

This must be Scintilla's issue because Notepad++ has the same problem. See if this can be localized and reported to them.

Normally, if a line wraps (line wrapping must be enabled - Ctrl+W) pressing End puts the caret to the end of the current subline or (next End) - to the end of the line. So no matter how many sublines a line is wrapped to, pressing End twice will put the caret to the end.

Same with Home and with Shift+Home/End.

However, if a line consists of Japanese symbols - Home/End navigate to the preceding/following subline. So a long wrapped line will need Home/End pressed multiple times, not just 2. Is this intentional and if so then why/what for?

For tests you can create a long line by copy/pasting the following two symbols: 日本

ProgerXP avatar Jan 08 '20 17:01 ProgerXP

Fixed.

cshnik avatar Nov 02 '20 18:11 cshnik

This is a Scintilla bug? Provide details please.

ProgerXP avatar Nov 03 '20 17:11 ProgerXP

This is a Scintilla bug? Provide details please.

Yes, there was a problem with cursor position calculation when working with unicode text. Updated Scintilla_ChangeLog.md.

cshnik avatar Nov 05 '20 19:11 cshnik

I mean if it's a Scintilla bug that should be reported to them or it's a problem with our patches?

ProgerXP avatar Nov 05 '20 20:11 ProgerXP

I mean if it's a Scintilla bug that should be reported to them or it's a problem with our patches?

Created bug for Scintilla: #2231 Cursor navigation issue in word wrap mode

cshnik avatar Jan 31 '21 20:01 cshnik