aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmds.c
diff options
context:
space:
mode:
authorRichard M. Stallman1993-03-12 21:42:58 +0000
committerRichard M. Stallman1993-03-12 21:42:58 +0000
commit2234dd63ea532b1bd8677b8e46201c2f4135b171 (patch)
treeabe126efc11d326a14a348809080a2fd4a5d1098 /src/cmds.c
parentb811cb81b2d52f20eddbe0937c9e3da2c01da0ad (diff)
downloademacs-2234dd63ea532b1bd8677b8e46201c2f4135b171.tar.gz
emacs-2234dd63ea532b1bd8677b8e46201c2f4135b171.zip
(internal_self_insert): Check that tab_width does not
exceed 20, to be consistent with indent.c and xdisp.c.
Diffstat (limited to 'src/cmds.c')
-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)
283 && (overwrite_binary_mode 283 && (overwrite_binary_mode
284 || FETCH_CHAR (point) != '\t' 284 || FETCH_CHAR (point) != '\t'
285 || XINT (current_buffer->tab_width) <= 0 285 || XINT (current_buffer->tab_width) <= 0
286 || XFASTINT (current_buffer->tab_width) > 20
286 || !((current_column () + 1) % XFASTINT (current_buffer->tab_width)))) 287 || !((current_column () + 1) % XFASTINT (current_buffer->tab_width))))
287 { 288 {
288 del_range (point, point + 1); 289 del_range (point, point + 1);