contour icon indicating copy to clipboard operation
contour copied to clipboard

`ScrollMark(Up|Down)` should scroll to absolute beginning/end if it would overflow

Open whisperity opened this issue 3 years ago • 1 comments
trafficstars

Trivial alternative to #836.

Abstract

Executing ScrollMarkUp to jump to the previous prompt should jump to the current beginning of the scrollback buffer in case the previous prompt no longer exists. If we have two large outputs in the buffer with only one prompt in the middle, we need to press ScrollToTop explicitly, instead of ScrollMarkUp falling back to its behaviour.

In an analogous fashion, if the last jumped marker is the last prompt and the "next" does not exist yet (because the process is still running, perhaps), then ScrollMarkDown should behave the same way as ScrollToBottom

Motivation

C++ SFINAE outputs.

whisperity avatar Sep 28 '22 10:09 whisperity

Lovely motivation! :)

christianparpart avatar Sep 28 '22 20:09 christianparpart