Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: frithjofh on August 12, 2007, 03:17:57 pm

Title: editor not scrolling to line-end
Post by: frithjofh on August 12, 2007, 03:17:57 pm
hi everybody,

i don't know if this is a bug or not, so first i'll post it here: when i have an especially long line of code the editor won't scroll to it's end by using the scrollbar. to go to it's end i have to use the "fin" or "end of line" key. i use the latest nightly build, the 4365 on windows XP SP2 and i don't use the functions of autowrapping the codelines...

regards

nausea
Title: Re: editor not scrolling to line-end
Post by: frithjofh on August 12, 2007, 03:45:29 pm
by the way: one i got to the end of the line using a key on keyboard, the it is posible to scroll to the end of the line correctly. it's just that there seems to be some value of how long the line should be assumed to be and the scrollbar does not take you any further i one does not update the length-value by force (by using the key)
Title: Re: editor not scrolling to line-end
Post by: rhf on August 12, 2007, 07:04:58 pm
... when i have an especially long line of code the editor won't scroll to it's end by using the scrollbar. to go to it's end i have to use the "fin" or "end of line" key ...

See https://sourceforge.net/tracker/index.php?func=detail&aid=1717606&group_id=2439&atid=102439

I have been using SciTE for text editing and have the same problem. The editor does not automatically measure the line size for setting the scroll bar. The fix there is to increase the variable 'horizontal.scroll.width' in SciTEGlobal.properties to, say, 10000 vs the default 2200 - the units are pixels, not columns.

There may be a way for the user to set this in CB, but I have not found it. Maybe this should be a feature request (or at least a larger value could be assigned for 'horizontal.scroll.width', wherever it is set).