From ff7ddc0f5ae02aeca86ea1d6694625278d2c3549 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 22 Mar 2020 13:22:28 +0100 Subject: 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. --- bundle/git-shortcuts/autoload/git_shortcuts.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bundle/git-shortcuts') 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() -- cgit v1.2.3