[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 2da83c9: Avoid assertion violations when line num
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 2da83c9: Avoid assertion violations when line numbers are displayed |
Date: |
Mon, 9 Oct 2017 08:30:08 -0400 (EDT) |
branch: emacs-26
commit 2da83c9d3630702ed10f54e890709d1afdb6585f
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Avoid assertion violations when line numbers are displayed
* src/xdisp.c (redisplay_window): Clear the window's desired glyph
matrix before calling try_window with the same starting point.
This avoids assertion violations when switching from a buffer
without line numbers to a buffer with line numbers. (Bug28710)
---
src/xdisp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/xdisp.c b/src/xdisp.c
index 141275f..b14b7da 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -17036,6 +17036,7 @@ redisplay_window (Lisp_Object window, bool
just_this_one_p)
= try_window_reusing_current_matrix (w)))
{
IF_DEBUG (debug_method_add (w, "1"));
+ clear_glyph_matrix (w->desired_matrix);
if (try_window (window, startp, TRY_WINDOW_CHECK_MARGINS) < 0)
/* -1 means we need to scroll.
0 means we need new matrices, but fonts_changed
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 2da83c9: Avoid assertion violations when line numbers are displayed,
Eli Zaretskii <=