News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How to center text? (always show text ahead)

Started by visir, December 18, 2017, 07:42:48 PM

Previous topic - Next topic

visir

When I'm using arrow keys to scroll through source code, cursor is at the very bottom of the "text subwindow". I don't see ahead.

I'd like for codeblocks to always show 3 lines ahead of cursor (or more). In emacs, I do this with "(setq scroll-margin 4)".

Jenna

If you have the EditorTweaks-plugin installed (on linux you need the codeblocks-contrib package), you can go change "Settings -> Editor -> Editor Tweaks -> Editor caret buffer".

visir

Doesn't work with debugger. Doesn't center when I'm stepping through code.

What should I change in the source code, where I should look? I have it compiled here.

oBFusCATed

Look at cbDebuggerPlugin::SyncEditor and cbEditor::GotoLine.

I guess it will be a good idea to move the editor tweak setting in the core so it could be respected in more places.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

oBFusCATed

Implemented in rev11296... Thanks for reporting...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]