Commit 2234dd63 authored by Richard M. Stallman's avatar Richard M. Stallman

(internal_self_insert): Check that tab_width does not

exceed 20, to be consistent with indent.c and xdisp.c.
parent b811cb81
......@@ -283,6 +283,7 @@ internal_self_insert (c1, noautofill)
&& (overwrite_binary_mode
|| FETCH_CHAR (point) != '\t'
|| XINT (current_buffer->tab_width) <= 0
|| XFASTINT (current_buffer->tab_width) > 20
|| !((current_column () + 1) % XFASTINT (current_buffer->tab_width))))
{
del_range (point, point + 1);
......
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