Mudlet / Mudlet

⚔️ A cross-platform, open source, and super fast MUD client with scripting in Lua
https://mudlet.org
GNU General Public License v2.0
735 stars 268 forks source link

Scroll up should not split window if less text shown #4809

Open Kebap opened 3 years ago

Kebap commented 3 years ago

Brief summary of issue / Description of requested feature:

Scrolling splits windows, but makes no sense when there is nowhere to scroll to

Steps to reproduce the issue / Reasons for adding feature:

  1. Start some profile in offline mode
  2. Enlarge Mudlet window enough to see all ten lines at once and empty space at bottom
  3. Scroll up. For example, roll your mouse-wheel.
  4. Mudlet window will be split, some of the above text is now duplicated in bottom pane.

Error output / Expected result of feature

  1. Mudlet should not split if all text in output window fits in original window size already

Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:

scroll

SlySven commented 3 years ago

:thinking: Given that the bottom line of the lower pane must be the last received line I must confess I am not sure how we should handle this - I suppose the only thing that would make sense visually is to prevent the lower pane from being shown if the number of lines in the TBuffer is less than or equal to the number of lines that can be shown in the un-split screen (i.e. the upper pane)...