changeset 2159:6a082f5ce7e6

(internal_self_insert): Check that tab_width does not exceed 20, to be consistent with indent.c and xdisp.c.
author Richard M. Stallman <rms@gnu.org>
date Fri, 12 Mar 1993 21:42:58 +0000
parents 5c9e59f279aa
children 0639c52f017c
files src/cmds.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cmds.c	Fri Mar 12 20:13:56 1993 +0000
+++ b/src/cmds.c	Fri Mar 12 21:42:58 1993 +0000
@@ -283,6 +283,7 @@
       && (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);