aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/git-shortcuts/autoload/git_shortcuts.vim
diff options
context:
space:
mode:
authorTeddy Wing2020-03-22 13:22:28 +0100
committerTeddy Wing2020-03-24 01:56:01 +0100
commitff7ddc0f5ae02aeca86ea1d6694625278d2c3549 (patch)
treea40a7346276fa3f846cb8e92d1409555c76e24ec /bundle/git-shortcuts/autoload/git_shortcuts.vim
parentd0da22af2e0988e6db433a3601e20e0417c73bb6 (diff)
downloaddotvim-ff7ddc0f5ae02aeca86ea1d6694625278d2c3549.tar.bz2
git-shortcuts: Move to the previous commit if on a "commit" line
Previously, if the cursor was on a commit line and not at the start of the line, the `[[` command would move to the start of the current line: commit 7a06e3db5d7a47a05558dd6557f23e665cc26c39 ^ *[[* commit 7a06e3db5d7a47a05558dd6557f23e665cc26c39 ^ This change causes the cursor to move correctly to the previous commit.
Diffstat (limited to 'bundle/git-shortcuts/autoload/git_shortcuts.vim')
-rw-r--r--bundle/git-shortcuts/autoload/git_shortcuts.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle/git-shortcuts/autoload/git_shortcuts.vim b/bundle/git-shortcuts/autoload/git_shortcuts.vim
index bcd32d9..c478e55 100644
--- a/bundle/git-shortcuts/autoload/git_shortcuts.vim
+++ b/bundle/git-shortcuts/autoload/git_shortcuts.vim
@@ -2,7 +2,7 @@ let s:COMMIT_START_PATTERN = '^commit'
function! git_shortcuts#CommitBackward()
- call search(s:COMMIT_START_PATTERN, 'b')
+ call search(s:COMMIT_START_PATTERN, 'bz')
endfunction
function! git_shortcuts#CommitForward()