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
74ca462f
Commit
74ca462f
authored
Aug 17, 1999
by
Gerd Moellmann
Browse files
(update_frame_line): If writing whole line,
don't write trailing spaces unless we must.
parent
f8e5fb70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/dispnew.c
src/dispnew.c
+11
-3
No files found.
src/dispnew.c
View file @
74ca462f
...
@@ -4836,10 +4836,18 @@ update_frame_line (frame, vpos)
...
@@ -4836,10 +4836,18 @@ update_frame_line (frame, vpos)
/* If display line has unknown contents, write the whole line. */
/* If display line has unknown contents, write the whole line. */
if
(
must_write_whole_line_p
)
if
(
must_write_whole_line_p
)
{
{
cursor_to (vpos, 0);
if
(
!
must_write_spaces
)
write_glyphs (nbody, nlen);
while
(
nlen
>
0
&&
CHAR_GLYPH_SPACE_P
(
nbody
[
nlen
-
1
]))
--
nlen
;
if
(
nlen
)
{
cursor_to
(
vpos
,
0
);
write_glyphs
(
nbody
,
nlen
);
}
cursor_to
(
vpos
,
nlen
);
cursor_to
(
vpos
,
nlen
);
clear_end_of_line (
-1
);
clear_end_of_line
(
olen
);
make_current
(
desired_matrix
,
current_matrix
,
vpos
);
make_current
(
desired_matrix
,
current_matrix
,
vpos
);
return
;
return
;
}
}
...
...
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