{{tag>category:"OpenInsight 32-Bit" author:"Oystein Reigem" author:"Pat McNerthney"}}
[[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]]
==== End key in System Editor (OpenInsight 32-Bit) ====
=== At 12 SEP 2002 09:41:24AM Oystein Reigem wrote: ===
In System Editor, when you press the End key, the caret normally goes to the end of the line. Or to be more exact it puts itself after the last visible character, but before any trailing whitespace chars. But with OI 4.1 w/Unicode the character counting can fail, and the caret may end up in the middle of the line. (But please read on even if you haven't got OI 4.1 and Unicode.)
See for yourself. Try with a row containing some 8-bit ANSI characters (or rather I should say characters that [i]used to be[/i] 8-bit ANSI characters, but now in pre OI 4.1 w/Unicode are [i]multi-byte[/i] characters). It seems the characters must be [i]letters[/i], though, like [i]áäà[/i]. [i]Special characters[/i] like [i]§¢º[/i] seem to work OK. If you can't find such letters on your keyboard, copy them from this posting. You will see that in and after this line the count is messed up.
Revelation - when you correct this - would you please consider changing the End key functionality to get the caret put at the [i]very[/i] end of the line - [i]after[/i] all trailing whitespace chars?
I myself never end program lines in whitespace on purpose, but quite often it happens by accident. See for yourself how annoying trailing whitespace can be: Key in a typical line of program code. Let the line end in one or more whitespace characters (spaces and tabs). Put the cursor anywhere at the line. Decide you want to follow the line with another more program line. Decide you want one or more empty lines between the existing line of code and the new one. The normal thing to do then - at least it is for me - is to press the End key, followed by a few hits on the the Enter key. Well, do just that and watch the caret swerve to the right instead of staying at the first code line's indention.
And [i]please[/i] tell me if it [i]doesn't[/i] happen with you.
Btw - note that [i]Shift+End[/i] sets or extends the selection to the [i]very[/i] end of the line.
- Oystein -
----
=== At 12 SEP 2002 10:09AM Oystein Reigem wrote: ===
I didn't mean that "pre" in "pre OI 4.1 w/Unicode".
- Oystein -
----
=== At 12 SEP 2002 06:10PM Pat McNerthney wrote: ===
Oystein,
I believe I have resolved the End Key not always going to the end of the line in the System Editor. I also made it always go to the VERY end of the line, just for you!
Pat
----
=== At 13 SEP 2002 03:34AM Oystein Reigem wrote: ===
Pat,
Great! Thanks!
- Oystein -
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=46B08110E34B8A4885256C32004B339C|View this thread on the Works forum...]]