Mercurial > emacs
changeset 35374:3fc8f4c6ed56
(direct_output_for_insert): If char_ins_del_ok is
zero, use this method only at the end of a line.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 17 Jan 2001 16:53:55 +0000 |
parents | 2630c195f872 |
children | 4ccf0b03febf |
files | src/dispnew.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispnew.c Wed Jan 17 16:18:45 2001 +0000 +++ b/src/dispnew.c Wed Jan 17 16:53:55 2001 +0000 @@ -3417,6 +3417,12 @@ || (!window_redisplay_p && !WINDOW_FULL_WIDTH_P (w))) return 0; + /* If we can't insert glyphs, we can use this method only + at the end of a line. */ + if (!char_ins_del_ok) + if (PT != ZV && FETCH_BYTE (PT_BYTE) != '\n') + return 0; + /* Set up a display iterator structure for W. Glyphs will be produced in scratch_glyph_row. Current position is W's cursor position. */