diff options
| author | Eli Zaretskii | 2013-02-12 18:36:55 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-02-12 18:36:55 +0200 |
| commit | 33b49d71e45e3be1db4577277763f1cb3138d225 (patch) | |
| tree | 2bd1eb9c50213b50801ef0da789796b8deb3b0b5 /src/window.h | |
| parent | f1f0587100316d5d7f622fb01d73f97e0c060d55 (diff) | |
| download | emacs-33b49d71e45e3be1db4577277763f1cb3138d225.tar.gz emacs-33b49d71e45e3be1db4577277763f1cb3138d225.zip | |
Minor additional fix in the wake of bugs #13623 and 13626.
src/xdisp.c (redisplay_internal): Don't set w->region_showing to the
marker's position.
(display_line): Set w->region_showing to the value of
it->region_beg_charpos, not to -1. This fixes redisplay
optimization when cursor is moved up after M->.
src/window.h (struct window): region_showing can no longer be negative.
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window.h b/src/window.h index 0f4f242641e..dcef37abb4c 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -338,8 +338,7 @@ struct window | |||
| 338 | int vscroll; | 338 | int vscroll; |
| 339 | 339 | ||
| 340 | /* If we have highlighted the region (or any part of it), the mark | 340 | /* If we have highlighted the region (or any part of it), the mark |
| 341 | position or -1 (the latter is used by the iterator for internal | 341 | (region start) position; otherwise zero. */ |
| 342 | purposes); otherwise zero. */ | ||
| 343 | ptrdiff_t region_showing; | 342 | ptrdiff_t region_showing; |
| 344 | 343 | ||
| 345 | /* Z_BYTE - buffer position of the last glyph in the current matrix of W. | 344 | /* Z_BYTE - buffer position of the last glyph in the current matrix of W. |