aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/gitcommit/gitcha.vim
diff options
context:
space:
mode:
authorTeddy Wing2017-04-29 06:17:49 +0200
committerTeddy Wing2017-04-29 06:17:49 +0200
commit884a799b977d5f747ac73d75e9fe7c8e529af349 (patch)
treee47e0e4eb49ed70e57ec2d04d1c8e397eb95f840 /ftplugin/gitcommit/gitcha.vim
parentc33f28d0f78aa171874367134f477c1dee5a8220 (diff)
downloadvim-gitcha-884a799b977d5f747ac73d75e9fe7c8e529af349.tar.bz2
autoload/gitcha.vim: Fix match list population
Previously, we were using the completion function sample copied from the Vim manual. This function determined `a:findstart` using a match against `\a`, which only matches alphanumeric characters. Git commit SHAs are SHA-1s, which can contain alphanumeric characters. With the previous match regex, if the word to be completed contained numbers, the `a:findstart` match would fail. This resulted in `a:base` being empty, causing all SHAs to be added to the `matches` array. Now we correctly match only the characters that can appear in a SHA-1, and the completion correctly fills in the rest given the start of a SHA.
Diffstat (limited to 'ftplugin/gitcommit/gitcha.vim')
0 files changed, 0 insertions, 0 deletions