Skip to content

Commit effafb8

Browse files
committed
fix choosing position
1 parent 6089843 commit effafb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/status_view.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ impl Status {
936936
CursorPosition::CursorLine(kind, fileno, hunkno, _)
937937
| CursorPosition::CursorHunk(kind, fileno, hunkno) => match kind {
938938
DiffKind::Staged => {
939-
let diff = self.unstaged.as_ref().unwrap();
939+
let diff = self.staged.as_ref().unwrap();
940940
let file = &diff.files[fileno];
941941
let hunk = &file.hunks[hunkno];
942942
return Some((kind, Some(file.path.clone()), Some(hunk.header.clone())));

0 commit comments

Comments
 (0)