aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2009-08-29 17:36:30 +0000
committerEli Zaretskii2009-08-29 17:36:30 +0000
commite0840eefe151fcecd119f24665f7a7445d19892c (patch)
treee4801c2a89bbb6fb4ff3700140bb3746dcfceabb /src
parent53be4cdb51ae1a8c3f01f25b798acc29fba86dd8 (diff)
downloademacs-e0840eefe151fcecd119f24665f7a7445d19892c.tar.gz
emacs-e0840eefe151fcecd119f24665f7a7445d19892c.zip
(redisplay_internal): Remove redundant test and collapse both branches
into one.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c34
2 files changed, 16 insertions, 23 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a5c20814b3f..171319d59f8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-08-29 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4 both branches into one.
5
12009-08-29 Stefan Monnier <monnier@iro.umontreal.ca> 62009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte. 8 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
diff --git a/src/xdisp.c b/src/xdisp.c
index a13463555d6..52c4037bbb2 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -11658,29 +11658,17 @@ redisplay_internal (preserve_echo_area)
11658 = MATRIX_ROW (w->current_matrix, this_line_vpos + 1); 11658 = MATRIX_ROW (w->current_matrix, this_line_vpos + 1);
11659 int delta, delta_bytes; 11659 int delta, delta_bytes;
11660 11660
11661 if (Z - CHARPOS (tlendpos) == ZV) 11661 /* We used to distinguish between two cases here,
11662 { 11662 conditioned by Z - CHARPOS (tlendpos) == ZV, for
11663 /* This line ends at end of (accessible part of) 11663 when the line ends in a newline or the end of the
11664 buffer. There is no newline to count. */ 11664 buffer's accessible portion. But both cases did
11665 delta = (Z 11665 the same, so they were collapsed. */
11666 - CHARPOS (tlendpos) 11666 delta = (Z
11667 - MATRIX_ROW_START_CHARPOS (row)); 11667 - CHARPOS (tlendpos)
11668 delta_bytes = (Z_BYTE 11668 - MATRIX_ROW_START_CHARPOS (row));
11669 - BYTEPOS (tlendpos) 11669 delta_bytes = (Z_BYTE
11670 - MATRIX_ROW_START_BYTEPOS (row)); 11670 - BYTEPOS (tlendpos)
11671 } 11671 - MATRIX_ROW_START_BYTEPOS (row));
11672 else
11673 {
11674 /* This line ends in a newline. Must take
11675 account of the newline and the rest of the
11676 text that follows. */
11677 delta = (Z
11678 - CHARPOS (tlendpos)
11679 - MATRIX_ROW_START_CHARPOS (row));
11680 delta_bytes = (Z_BYTE
11681 - BYTEPOS (tlendpos)
11682 - MATRIX_ROW_START_BYTEPOS (row));
11683 }
11684 11672
11685 increment_matrix_positions (w->current_matrix, 11673 increment_matrix_positions (w->current_matrix,
11686 this_line_vpos + 1, 11674 this_line_vpos + 1,