diff options
author | Teddy Wing | 2017-04-29 06:17:49 +0200 |
---|---|---|
committer | Teddy Wing | 2017-04-29 06:17:49 +0200 |
commit | 884a799b977d5f747ac73d75e9fe7c8e529af349 (patch) | |
tree | e47e0e4eb49ed70e57ec2d04d1c8e397eb95f840 /ftplugin | |
parent | c33f28d0f78aa171874367134f477c1dee5a8220 (diff) | |
download | vim-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')
0 files changed, 0 insertions, 0 deletions