diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-26 21:56:32 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-26 21:56:32 +0100 |
| commit | 63cd4b981cb26ac52c2d6b545484b9340d021ea0 (patch) | |
| tree | 9bda3f13394660832d7fb2f982146857d2a849a2 | |
| parent | 0b8cf8a7ce220545b524685652e9464a1c4dee9c (diff) | |
magit--get-blob-buffer: Use buffer-enable-undo
| -rw-r--r-- | lisp/magit-files.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/magit-files.el b/lisp/magit-files.el index f63864f..3f5942b 100644 --- a/lisp/magit-files.el +++ b/lisp/magit-files.el @@ -146,11 +146,9 @@ REV is a revision or one of \"{worktree}\" or \"{index}\"." buf) ([buf (get-buffer-create (magit--blob-buffer-name rev file volatile))] (with-current-buffer buf - ;; Undo is disabled in hidden buffers by default. While this - ;; may look like it is doing the opposite, this enabled undo. - (setq buffer-undo-list nil) (setq magit-buffer--volatile volatile) (magit--blob-cache-put buf)) + (buffer-enable-undo buf) buf))) (defun magit--blob-buffer-name (rev file &optional volatile) |
