Skip to content

Commit 6f38d9f

Browse files
committed
fix: add redraw after Enter key in gin-blame
Redraw the display after switching commits (Enter key) and navigating history (Ctrl-O/Ctrl-I) to ensure the buffer and cursor changes are immediately visible to the user.
1 parent 430720f commit 6f38d9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

denops/gin/command/blame/edit.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,9 @@ export async function switchToCommit(denops: Denops): Promise<void> {
939939
await fn.win_gotoid(denops, winidCurrent);
940940
}
941941
}
942+
943+
// Redraw to ensure display is updated after buffer/cursor changes
944+
await denops.cmd("redraw");
942945
}
943946

944947
/**
@@ -1077,4 +1080,7 @@ export async function navigateHistory(
10771080
if (scheme === "ginblame") {
10781081
await fn.win_gotoid(denops, winidCurrent);
10791082
}
1083+
1084+
// Redraw to ensure display is updated after buffer/cursor changes
1085+
await denops.cmd("redraw");
10801086
}

0 commit comments

Comments
 (0)