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
ffa286a2
Commit
ffa286a2
authored
Nov 30, 1998
by
Richard M. Stallman
Browse files
(display_text_line): When handling HPOS < 0 after loop,
if compute_motion fails to advance at all, don't back it up.
parent
acafa9cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/xdisp.c
src/xdisp.c
+3
-2
No files found.
src/xdisp.c
View file @
ffa286a2
...
...
@@ -3371,8 +3371,9 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done)
compute_motion may have moved us past the screen position we
requested, if we hit a multi-column character, or the end of
the line. If so, back up. */
if
(
left_edge
->
vpos
>
vpos
||
left_edge
->
hpos
>
0
)
if
((
left_edge
->
vpos
>
vpos
||
left_edge
->
hpos
>
0
)
&&
left_edge
->
bufpos
>
pos
)
{
pos
=
left_edge
->
bufpos
;
pos_byte
=
left_edge
->
bytepos
;
...
...
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