summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-03-02 14:17:59 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-03-02 14:17:59 +0900
commita484811f78c9462b2480e33b9f44ad2fae2f4955 (patch)
tree0956b389fba207d59e716dace2ecea2b11eff3f8
parent111d1934c49ac22cf84abf0ada9c24f091fc38cd (diff)
[vim] Capitalize exception messages
-rw-r--r--plugin/fzf.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 840d1fed..8e7c04ac 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -195,7 +195,7 @@ endfunction
function! s:validate_layout(layout)
for key in keys(a:layout)
if index(s:layout_keys, key) < 0
- throw printf('invalid entry in g:fzf_layout: %s (allowed: %s)%s',
+ throw printf('Invalid entry in g:fzf_layout: %s (allowed: %s)%s',
\ key, join(s:layout_keys, ', '), key == 'options' ? '. Use $FZF_DEFAULT_OPTS.' : '')
endif
endfor
@@ -210,7 +210,7 @@ function! fzf#wrap(...)
for arg in copy(a:000)
let tidx = index(expects, type(arg), tidx)
if tidx < 0
- throw 'invalid arguments (expected: [name string] [opts dict] [fullscreen boolean])'
+ throw 'Invalid arguments (expected: [name string] [opts dict] [fullscreen boolean])'
endif
let args[tidx] = arg
let tidx += 1
@@ -320,7 +320,7 @@ try
call writefile(source, temps.input)
let prefix = (s:is_win ? 'type ' : 'cat ').s:shellesc(temps.input).'|'
else
- throw 'invalid source type'
+ throw 'Invalid source type'
endif
else
let prefix = ''