You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following error when company-mode tries to show the completion window right before an overlay on (point-max) that has the after-string property containing more than one line:
Company: Front-end company-pseudo-tooltip-unless-just-one-frontend error "Invalid search bound (wrong side of point)" on command post-command
Put cursor on any line at most 10 lines before the end of buffer.
Try to type a prefix to a completion.
The error seems to be caused by the call to (vertical-motion 1) in company-buffer-lines reporting that it has moved more than 1 line forward, when the point actually only moved at most one line. This seems to be fixed by replacing vertical-motion with the functionally equivalent (?) function (lambda (n) (- n (forward-line n))).
The text was updated successfully, but these errors were encountered:
jmickelin
changed the title
Error when trying to pop up the completion window over an after-string overlay at the end of buffer
Error when trying to pop up the completion window over a sufficiently long after-string overlay at the end of buffer
Jan 8, 2015
I'm getting the following error when
company-mode
tries to show the completion window right before an overlay on(point-max)
that has theafter-string
property containing more than one line:Steps to reproduce:
Run
Put cursor on any line at most 10 lines before the end of buffer.
Try to type a prefix to a completion.
The error seems to be caused by the call to
(vertical-motion 1)
incompany-buffer-lines
reporting that it has moved more than1
line forward, when the point actually only moved at most one line. This seems to be fixed by replacingvertical-motion
with the functionally equivalent (?) function(lambda (n) (- n (forward-line n)))
.The text was updated successfully, but these errors were encountered: