diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-03-12 21:42:58 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-03-12 21:42:58 +0000 |
commit | 2698c5750adf3e7bdecf6fadab09804b0bc352bb (patch) | |
tree | 2913c464663d4d11fc6d57e458be83b070968826 /src/cmds.c | |
parent | 2fd61ac9cdf60a39466edc2d889cc4d0aabe5b8f (diff) | |
download | emacs-2698c5750adf3e7bdecf6fadab09804b0bc352bb.tar.gz |
(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.c | 1 |
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); |