Commit Graph
2 Commits
Author SHA1 Message Date
Frederick Zhang 2f3e29fc37 Change git working directory according to the current buffer (#1290)
* Commits
* BCommits
* GFiles
2022-08-03 22:24:13 +09:00
Frederick Zhang e34f6c129d [[B]Commits] Preserve window view (#1289)
In 161da95, [B]Commits were changed to range commands with -range=%, now
Vim jumps to the first line when these two commands are called directly
without specifying range.

This fixes it by saving window view in a temporary variable and
restoring it later. Reference: [1].

[1] https://vi.stackexchange.com/a/6037/33583
2021-05-25 13:30:41 +09:00