Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e6583e3d
Commit
e6583e3d
authored
Jul 21, 2009
by
Chong Yidong
Browse files
* xdisp.c (move_it_to): For continued lines ending in a tab, take
the overflowed pixels into account (Bug#3879).
parent
ec06459c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
src/ChangeLog
src/ChangeLog
+5
-0
src/xdisp.c
src/xdisp.c
+9
-4
No files found.
src/ChangeLog
View file @
e6583e3d
2009-07-21 Chong Yidong <cyd@stupidchicken.com>
* xdisp.c (move_it_to): For continued lines ending in a tab, take
the overflowed pixels into account (Bug#3879).
2009-07-21 Ken Raeburn <raeburn@raeburn.org>
* lread.c (load_depth): New variable.
...
...
src/xdisp.c
View file @
e6583e3d
...
...
@@ -7090,8 +7090,7 @@ move_it_to (it, to_charpos, to_x, to_y, to_vpos, op)
int op;
{
enum move_it_result skip, skip2 = MOVE_X_REACHED;
int line_height;
int reached = 0;
int line_height, line_start_x = 0, reached = 0;
for (;;)
{
...
...
@@ -7274,7 +7273,11 @@ move_it_to (it, to_charpos, to_x, to_y, to_vpos, op)
if (it->current_x != it->last_visible_x
&& (op & MOVE_TO_VPOS)
&& !(op & (MOVE_TO_X | MOVE_TO_POS)))
set_iterator_to_next (it, 0);
{
line_start_x = it->current_x + it->pixel_width
- it->last_visible_x;
set_iterator_to_next (it, 0);
}
}
else
it->continuation_lines_width += it->current_x;
...
...
@@ -7286,7 +7289,9 @@ move_it_to (it, to_charpos, to_x, to_y, to_vpos, op)
/* Reset/increment for the next run. */
recenter_overlay_lists (current_buffer, IT_CHARPOS (*it));
it->current_x = it->hpos = 0;
it->current_x = line_start_x;
line_start_x = 0;
it->hpos = 0;
it->current_y += it->max_ascent + it->max_descent;
++it->vpos;
last_height = it->max_ascent + it->max_descent;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment