Author Topic: hscroll and view-special  (Read 2176 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
hscroll and view-special
« on: September 12, 2016, 09:27:42 PM »
The hscroller behaves really oddly on UTF-8 buffers with view-special enabled,

Repo:
Load a utf-8 C++ file.
Scroll down until the hscroll bar appears due to long lines.

Enable View SpecialChars.
BUG1: The hscroller disappears - well, the scrollbar stays, but the thumb disappears and the scroller is disabled.

Move the cursor to a long line of text.
<end> to jump to the end.
The hscroller appears again as it should normally be.
BUG2: Now, hold the left arrow and as the text is scrolled right the hscroller thumb rescales - it should not.




Bug3: Disable View-SpecialChars.
Move to a long line of text. (For me, the line 156 characters, the window is 142 characters wide).
Move to the start of the line, note the hscroller thumb size.
Move to the end of the line, note the hscroller thumb size - now it is much narrower.

The size of the thumb should not change as the window scrolls left and right -- the size of the thumb should simply be the ratio of the width of the text vs. the width of the window.

This happens even if I do a save-as "text SBCS/DBCS mode" - so it isn't just Unicode mode.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6866
  • Hero Points: 528
Re: hscroll and view-special
« Reply #1 on: September 12, 2016, 10:07:07 PM »
BUG1. We will look into this. Fix for this might not make v21 gold.

SlickEdit supports visual space at the end of the line. That's why the thumb size changes and has to change.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6866
  • Hero Points: 528
Re: hscroll and view-special
« Reply #2 on: September 13, 2016, 02:30:02 PM »
This will be fixed in RC 2.