aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-11-24 20:46:20 +0100
committerTeddy Wing2023-11-24 20:46:20 +0100
commit1b46638e39f34ca3cfffdde235db69cd8150d284 (patch)
tree868b189a505665c6810848daa25b15e05e44e44c
parent9afec6570dd9795aeb720678cd3b2286d3998a13 (diff)
downloadcode-review-1b46638e39f34ca3cfffdde235db69cd8150d284.tar.bz2
code-review-difftool: Focus new changes buffer instead of old version
Previously, the focused window in each tab was the Fugitive window that contained the old version of the file. It's nicer to have the new version focused by default, because that allows you to make changes to the local source code.
-rwxr-xr-xcode-review-difftool2
1 files changed, 1 insertions, 1 deletions
diff --git a/code-review-difftool b/code-review-difftool
index aabce9a..44822b5 100755
--- a/code-review-difftool
+++ b/code-review-difftool
@@ -29,5 +29,5 @@ review_base_without_dots="${review_base%%?(..|...)}"
vim \
-n \
- -c "tabdo Gvdiffsplit $review_base_without_dots" \
+ -c "tabdo vertical Gdiffsplit! $review_base_without_dots" \
-p $(code-review changed-files)