As reported in the forum: link
The scroll bar is not updated on file load for long lines. To reproduce:
1) Create a new file
2) Create a long line within this file (lets say at least 2000 characters...
3) Save the file
4) Close the file
5) Open the file again
6) The scroll bar will not be updated and display a default with. If you use the scroll bar to go to the end of the line it will crop of. You still can use the arrow keys to go to the end.
Also using the end key works...
It's actually a feature. It's controlled by the
scroll_width_tracking
setting variable. The setting can be found in settings -> editor configuration -> margins and caret -> scrollbar: Automatically [...]It's a Scintilla setting. It's explained in: https://www.scintilla.org/ScintillaDoc.html#SCI_SETSCROLLWIDTHTRACKING
I think that the default should be changed to true.
related ticket https://sourceforge.net/p/codeblocks/tickets/930/