|
From: | Dmitry Gutov |
Subject: | bug#20847: [display engine] 25.0.50; company-mode popup makes point jump to an entirely different location |
Date: | Sun, 21 Jun 2015 23:17:32 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 |
On 06/21/2015 10:23 PM, Eli Zaretskii wrote:
The reason is that there's an invisible property on buffer text. When redisplay fails to place the cursor where it belongs, i.e. on the line that ends with "hel", it looks for alternative strategies.
I guess the next question would be why redisplay fails to place the cursor after 9, but not after 6. The value of point, and the buffer contents, are the same in both situations, aren't they?
I can make the code bypass this in the case in point, but the result will be that cursor will be displayed at the end of the first screen line, which is hardly better.
If cursor was displayed wherever but point didn't move, that would be better. But you probably mean to move point as well.
So I think we should try telling the display engine where to put the cursor via the 'cursor' property on buffer text, as proposed earlier.
Okay, thanks.
[Prev in Thread] | Current Thread | [Next in Thread] |