[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit c3b7fd7dc4: magit-status-setup-buffer: Ensure c
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/git-commit c3b7fd7dc4: magit-status-setup-buffer: Ensure correct position when narrowed |
|
Date: |
Tue, 9 Jan 2024 12:59:45 -0500 (EST) |
branch: elpa/git-commit
commit c3b7fd7dc43dd87468a86aef3d59576ad79fbc16
Author: Brian Leung <leungbk@posteo.net>
Commit: Brian Leung <leungbk@posteo.net>
magit-status-setup-buffer: Ensure correct position when narrowed
---
lisp/magit-status.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/magit-status.el b/lisp/magit-status.el
index 76e4daf368..eb6f313194 100644
--- a/lisp/magit-status.el
+++ b/lisp/magit-status.el
@@ -426,8 +426,8 @@ Type \\[magit-commit] to create a commit.
magit-status-use-buffer-arguments))
(file (and magit-status-goto-file-position
(magit-file-relative-name)))
- (line (and file (line-number-at-pos)))
- (col (and file (current-column)))
+ (line (and file (save-restriction (widen) (line-number-at-pos))))
+ (col (and file (save-restriction (widen) (current-column))))
(buf (magit-setup-buffer #'magit-status-mode nil
(magit-buffer-diff-args (nth 0 d))
(magit-buffer-diff-files (nth 1 d))
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/git-commit c3b7fd7dc4: magit-status-setup-buffer: Ensure correct position when narrowed,
ELPA Syncer <=