diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-01-17 16:54:20 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-01-17 16:54:20 +0000 |
commit | f3ffc2c358644fa8d7efe15c6cd9738a605c0cde (patch) | |
tree | efd52c00b48817c7810a0ca7ade177fe2bd8137d /src/dispnew.c | |
parent | d51ffa0ebe086994903f6ff18628b9897bc09028 (diff) | |
download | emacs-f3ffc2c358644fa8d7efe15c6cd9738a605c0cde.tar.gz |
(direct_output_for_insert): If char_ins_del_ok is
zero, use this method only at the end of a line.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index f9d9fb2d856..c18838df2bf 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -3417,6 +3417,12 @@ direct_output_for_insert (g) || (!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. */ |