Commit f3ffc2c3 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(direct_output_for_insert): If char_ins_del_ok is

zero, use this method only at the end of a line.
parent d51ffa0e
2001-01-17 Gerd Moellmann <gerd@gnu.org>
* dispnew.c (direct_output_for_insert): If char_ins_del_ok is
zero, use this method only at the end of a line.
* xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
call to x_list_fonts. Call x_list_fonts with SIZE -1 only
if SCALABLE_FONTS_P is set.
......
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment