mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-17 08:31:09 -08:00
Fix I-search at EOB when long lines are truncated
* src/xdisp.c (move_it_to): Fix logic when TO_CHARPOS is at the end of an hscrolled line which ends at EOB. (Bug#46316)
This commit is contained in:
parent
c535fe647c
commit
56c42bd28d
1 changed files with 3 additions and 1 deletions
|
|
@ -10049,7 +10049,9 @@ move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos
|
|||
it->continuation_lines_width = 0;
|
||||
reseat_at_next_visible_line_start (it, false);
|
||||
if ((op & MOVE_TO_POS) != 0
|
||||
&& IT_CHARPOS (*it) > to_charpos)
|
||||
&& (IT_CHARPOS (*it) > to_charpos
|
||||
|| (IT_CHARPOS (*it) == to_charpos
|
||||
&& to_charpos == ZV)))
|
||||
{
|
||||
reached = 9;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue