You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the source window scrolls naively. It would be great if it were more intelligent.
The ideal would be if we could get loop information out of gdb, so we could scroll the window to show the entirety of a loop. This isn't available though.
When entering a new function we should try to display it -- centering the function in the window if it is small enough, but otherwise showing the start of the function at the top.
When stepping we could adopt a somewhat emacs-like approach. After N steps that scroll a single line, we could scroll so that point is centered. Then if we have to scroll backward within a function, assume there is a loop and scroll so that point is at the top of the window (to try to keep the entire loop visible).
The text was updated successfully, but these errors were encountered:
Another case to consider is up/down. Here "same frame" isn't the relevant distinction but instead the window should save scroll positions with the buffer, or something like that.
Now I'm thinking of having two margins: an "outer" margin, where if stepping moves past that point, the text is scrolled; and an "inner" margin which indicates how much more text to show.
Right now the source window scrolls naively. It would be great if it were more intelligent.
The ideal would be if we could get loop information out of gdb, so we could scroll the window to show the entirety of a loop. This isn't available though.
When entering a new function we should try to display it -- centering the function in the window if it is small enough, but otherwise showing the start of the function at the top.
When stepping we could adopt a somewhat emacs-like approach. After N steps that scroll a single line, we could scroll so that point is centered. Then if we have to scroll backward within a function, assume there is a loop and scroll so that point is at the top of the window (to try to keep the entire loop visible).
The text was updated successfully, but these errors were encountered: