You are here: PSPad forum > Bug report / Hlášení chyb > Re: Cursor position error caused by input of special ASCII-characters

Re: Cursor position error caused by input of special ASCII-characters

#1 Cursor position error caused by input of special ASCII-characters

Posted by: ribbe | Date: 2013-06-13 09:45 | IP: IP Logged

When one enters some special ASCII-characters at the end of a line, there arises a cursor position error. The ASCII-characters causing the problem are: #129, #141, #143, #144, #157. These characters can be useful in programming source code files.

This bug can be checked very easily:

Start with a blank document
Click 5 times an ordinary character (eg 5 times 'a')
Open the ASCII table (Tools -> ASCII Table window)
Double-click the empty box of the ASCII-character #143
In the main window click at the cursor position 6 (right after the fifth 'a')
The cursor position in the status bar below should be 6 but it indicates position 7.

The bug occurs in Windows 7 and Windows 8. The bug does not occur in Windows XP SP3.

This bug makes a mess of the cursor position when a long line with multiple ASCII characters of this kind is scrolled horizontally. One can verify this by creating a line with the whole ASCII table by means of the extension 'ASCII Set 32-255 Generator'.

PS. I appreciate PSPad as a very user-friendly software.

Options: Reply | Quote | Up ^


#2 Re: Cursor position error caused by input of special ASCII-characters

Posted by: glash | Date: 2013-10-01 04:30 | IP: IP Logged

I am having this exact problem. It really makes it a pain in the... to edit HTML code with some text in it... Have you found a cure for this?

Options: Reply | Quote | Up ^


#3 Re: Cursor position error caused by input of special ASCII-characters

Posted by: Freeman | Date: 2013-10-01 15:10 | IP: IP Logged

I've wrote about it before.

Guess you're using Central European Windows-1250 code page, because there is no character #143 in Western Windows-1252. Windows-1250 #143 character looks like Ź -- LATIN CAPITAL LETTER Z WITH ACUTE in Unicode, U+0179. It's proper HTML codes are &Zacute, &#377 or &#x179.

This is PSPad bug, because U+008F is SINGLE SHIFT THREE control code in Unicode, so Windows 7 behavior is right.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2021 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR