summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmds.c b/src/cmds.c
index 8a6fb19535c..9dfd2b48a8f 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -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);