I pasted the wrong thing, I meant "p_LCHasCursor", which is a variable.
if (p_LCHasCursor && _LCIsReadWrite()) {
_LCRight();
} else {
wordwrap_right(def_cursorwrap);
}
What I was trying to do was find a way to go to a *character* position in a file, not a byte position.
I have some tool that is logging character positions in source files, even when the source file is utf-8 encoded, and trying to go to the right place in Slick is challenging.
I thought I might start by looking at the cursor movement functions, since hitting the right/left arrows moves by characters, despite "p_col" is apparently reporting bytes.
But, it seems the only way would be to call right() in a loop and count how many times it takes to get to the end of the line :-(
Or call next_char() "n" times, where "n" is the character position in the file - but seems like this might be slow with a really big file - and it probably won't do things quite right due to tabs settings, mode, or other corner cases.