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
4a4c24d0
Commit
4a4c24d0
authored
Apr 02, 1998
by
Richard M. Stallman
Browse files
(redisplay_window): Fix computing pos from last_point.
parent
0c10ee28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/xdisp.c
src/xdisp.c
+8
-5
No files found.
src/xdisp.c
View file @
4a4c24d0
...
...
@@ -2033,14 +2033,16 @@ redisplay_window (window, just_this_one, preserve_echo_area)
{
int
last_point
=
XFASTINT
(
w
->
last_point
);
int
last_point_byte
=
CHAR_TO_BYTE
(
last_point
);
int
tab_offset
=
(
pos_tab_offset
(
w
,
last_point
,
last_point_byte
)
-
(
last_point_x
+
hscroll
-
!!
hscroll
));
pos
=
*
compute_motion
(
last_point
,
last_point_y
,
last_point_x
,
0
,
PT
,
height
,
/* BUG FIX: See the comment of
/* BUG FIX: See the comment of
Fpos_visible_in_window_p (window.c). */
-
(
1
<<
(
BITS_PER_SHORT
-
1
)),
width
,
hscroll
,
pos_
tab_offset
(
w
,
last_point
,
last_point_byte
)
,
tab_offset
,
w
);
}
else
...
...
@@ -3048,9 +3050,10 @@ fix_glyph (f, glyph, cface)
}
/* Return the column of position POS / POS_BYTE in window W's buffer.
The result is rounded down to a multiple of the internal width of W.
This is the amount of indentation of position POS
that is not visible in its horizontal position in the window. */
When used on the character at the beginning of a line,
starting at column 0, this says how much to subtract from
the column position of any character in the line
to get its horizontal position on the screen. */
static
int
pos_tab_offset
(
w
,
pos
,
pos_byte
)
...
...
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