diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2023-07-07 10:34:46 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2023-07-07 10:36:09 +0100 |
commit | f5714f2a8d1ee46a5da7b29fd4960514e0d64830 (patch) | |
tree | 4c55932b3cf1e4c60b3462105d61aade693bdbc3 | |
parent | 9501e054e61d733caa47cddd935d94d42ced0132 (diff) | |
download | dotfiles-f5714f2a8d1ee46a5da7b29fd4960514e0d64830.tar.gz |
fix C-u C-u M-! for very short Eshell buffers
-rw-r--r-- | .emacs.d/init.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4fb23938..c5c5b552 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1928,7 +1928,8 @@ Some ideas behind these behaviours are as follows. (goto-char (point-max)) (skip-syntax-backward "\\s-") (- (point) (length >>>))))) - (unless (string= >>> (buffer-substring there (point-max))) + (unless (and (>= there 0) + (string= >>> (buffer-substring there (point-max)))) (save-excursion (goto-char (point-max)) (insert >>>) |