selectrum
selectrum copied to clipboard
Hscroll issues
The input line gets shifted way too early:
Sometimes the candidates get shifted to the middle of the screen:
Thanks, we can add an option for the first or maybe make use of hscroll-margin
like you suggested in the other issue. For the shifted candidates I would need a recipe to reproduce this seems to be an edge case because it doesn't happened with the examples I tried.
The easiest way to reproduce it is to have some long content in the input line and then slowly resize the emacs frame with the mouse. I’m quite sure I’ve seen it happen naturally without a resize of the frame, but I haven’t seen it recently.
Resizing the frame with the mouse vertically has other problems but I can't reproduce the candidate misplacement when resizing it horizontally. Maybe this has only been a problem in older older versions if you can reproduce it with the current version please provide a recipe using emacs -Q
.
I don't know how I get Emacs into the state, but this repros it for me, but not if I restart emacs. So, after some time, this starts happening. I realize that's not super helpful, but maybe it'll help someone at some point 😄 I'll keep trying to repro from emacs -Q
(completing-read "Test: " '("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxone" "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxtwo") nil nil "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
Okay, thanks, weird that it happens after some time only, I wonder what this is about :eyes: