Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make xolox#misc#complete#keywords() respect &ignorecase

  • Loading branch information...
commit e5b41ce81a7fbf73f46b0b230947de772a5452f7 1 parent f6acb27
@xolox authored
View
2  README.md
@@ -38,7 +38,7 @@ from the source code of the miscellaneous scripts using the Python module
<!-- Start of generated documentation -->
The documentation of the 93 functions below was extracted from
-19 Vim scripts on July 7, 2014 at 19:00.
+19 Vim scripts on July 19, 2014 at 12:32.
### Asynchronous Vim script evaluation
View
4 autoload/xolox/misc.vim
@@ -1,7 +1,7 @@
" The version of my miscellaneous scripts.
"
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: July 7, 2014
+" Last Change: July 19, 2014
" URL: http://peterodding.com/code/vim/misc/
-let g:xolox#misc#version = '1.14.1'
+let g:xolox#misc#version = '1.14.2'
View
8 autoload/xolox/misc/complete.vim
@@ -1,7 +1,7 @@
" Tab completion for user defined commands.
"
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: May 19, 2013
+" Last Change: July 9, 2014
" URL: http://peterodding.com/code/vim/misc/
function! xolox#misc#complete#keywords(arglead, cmdline, cursorpos)
@@ -16,7 +16,11 @@ function! xolox#misc#complete#keywords(arglead, cmdline, cursorpos)
let words[word] = 1
endfor
endfor
- return sort(keys(filter(words, 'v:key =~# a:arglead')))
+ let arguments = [keys(filter(words, 'v:key =~# a:arglead'))]
+ if &ignorecase
+ call add(arguments, 1)
+ endif
+ return call('sort', arguments)
endfunction
" vim: ts=2 sw=2 et
View
2  doc/misc.txt
@@ -168,7 +168,7 @@ from the source code of the miscellaneous scripts using the Python module
'vimdoctool.py' included in vim-tools [5].
The documentation of the 93 functions below was extracted from 19 Vim scripts
-on July 7, 2014 at 19:00.
+on July 19, 2014 at 12:32.
-------------------------------------------------------------------------------
*misc-asynchronous-vim-script-evaluation*
Please sign in to comment.
Something went wrong with that request. Please try again.