-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completion inserted at wrong point when window too small #2161
Comments
Please add a reproduction scenario: Emacs version, some simple code to debug, window size, command sequence etc. |
Sure, I'll be using Emacs 26.1 (started with I enable Ivy and eval Now I run Pressing Compare this now to ivy being deactivated, and the same procedure again. The completion options should now presented in their own buffer, and the chosen option will be placed after the point where the completion was invoked. I hope this should document the issue well enough |
Thanks, please test. See the commit message for more info. |
Check if there are at least `ivy-height' lines available below point in the current winodow. If not, scroll the current window enough to make them available. Fixes abo-abo#2161
Hi,
I was using GDB with
gdb-many-windows
in Emacs the other day, and I kept noticing that completions were no inserted where the cursor was when I started the insertion, but a few lines above. It seems that when Ivy rescales the minibuffer, this shrinks the size of the GUD interaction buffer, and since the point is outside of the rescaled view, it's moved up, where it inserts what I choose in the minibuffer. Notice that the cursor then returns to it's previous place, so I'm guessing that this just needs swapping the order of two operations?Also noteworthey, "regular" (ie. with ivy-mode disabled) completion places the completion at the right point, even when frames are resized.
I couldn't find any other examples like this, except for GDB/GUD.
The text was updated successfully, but these errors were encountered: