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
e0840eef
Commit
e0840eef
authored
Aug 29, 2009
by
Eli Zaretskii
Browse files
(redisplay_internal): Remove redundant test and collapse both branches
into one.
parent
53be4cdb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
23 deletions
+16
-23
src/ChangeLog
src/ChangeLog
+5
-0
src/xdisp.c
src/xdisp.c
+11
-23
No files found.
src/ChangeLog
View file @
e0840eef
2009-08-29 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (redisplay_internal): Remove redundant test and collapse
both branches into one.
2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
...
...
src/xdisp.c
View file @
e0840eef
...
...
@@ -11658,29 +11658,17 @@ redisplay_internal (preserve_echo_area)
= MATRIX_ROW (w->current_matrix, this_line_vpos + 1);
int delta, delta_bytes;
if (Z - CHARPOS (tlendpos) == ZV)
{
/* This line ends at end of (accessible part of)
buffer. There is no newline to count. */
delta = (Z
- CHARPOS (tlendpos)
- MATRIX_ROW_START_CHARPOS (row));
delta_bytes = (Z_BYTE
- BYTEPOS (tlendpos)
- MATRIX_ROW_START_BYTEPOS (row));
}
else
{
/* This line ends in a newline. Must take
account of the newline and the rest of the
text that follows. */
delta = (Z
- CHARPOS (tlendpos)
- MATRIX_ROW_START_CHARPOS (row));
delta_bytes = (Z_BYTE
- BYTEPOS (tlendpos)
- MATRIX_ROW_START_BYTEPOS (row));
}
/* We used to distinguish between two cases here,
conditioned by Z - CHARPOS (tlendpos) == ZV, for
when the line ends in a newline or the end of the
buffer's accessible portion. But both cases did
the same, so they were collapsed. */
delta = (Z
- CHARPOS (tlendpos)
- MATRIX_ROW_START_CHARPOS (row));
delta_bytes = (Z_BYTE
- BYTEPOS (tlendpos)
- MATRIX_ROW_START_BYTEPOS (row));
increment_matrix_positions (w->current_matrix,
this_line_vpos + 1,
...
...
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