Mercurial > vim-lawrencium
comparison autoload/lawrencium/hg.vim @ 153:b5ce60d1e6b4
Fix missing `endif`.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 11 Nov 2021 12:38:09 -0800 |
parents | 652a6f5df0f3 |
children |
comparison
equal
deleted
inserted
replaced
152:62e054a2c4f0 | 153:b5ce60d1e6b4 |
---|---|
87 let l:copts = filter(copy(g:lawrencium_hg_commands[l:cmd]), "v:val[0:strlen(l:arglead)-1] ==# l:arglead") | 87 let l:copts = filter(copy(g:lawrencium_hg_commands[l:cmd]), "v:val[0:strlen(l:arglead)-1] ==# l:arglead") |
88 let l:gopts = filter(copy(g:lawrencium_hg_options), "v:val[0:strlen(l:arglead)-1] ==# l:arglead") | 88 let l:gopts = filter(copy(g:lawrencium_hg_options), "v:val[0:strlen(l:arglead)-1] ==# l:arglead") |
89 return l:copts + l:gopts | 89 return l:copts + l:gopts |
90 endif | 90 endif |
91 endif | 91 endif |
92 | 92 |
93 " Just auto-complete with filenames unless it's an option. | 93 " Just auto-complete with filenames unless it's an option. |
94 if l:arglead[0] ==# '-' | 94 if l:arglead[0] ==# '-' |
95 return [] | 95 return [] |
96 else | 96 else |
97 return lawrencium#list_repo_files(a:ArgLead, a:CmdLine, a:CursorPos) | 97 return lawrencium#list_repo_files(a:ArgLead, a:CmdLine, a:CursorPos) |
98 endif | |
98 endfunction | 99 endfunction |
99 | 100 |
100 function! s:GetHgCommandName(args) abort | 101 function! s:GetHgCommandName(args) abort |
101 for l:a in a:args | 102 for l:a in a:args |
102 if stridx(l:a, '-') != 0 | 103 if stridx(l:a, '-') != 0 |