aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorCase Nelson <case@outpace.com>2016-04-10 00:20:57 -0600
committerJustin M. Keyes <justinkz@gmail.com>2016-04-18 05:40:15 -0400
commit4a200ceafa475f5c4a7dc576df97a12caedd3590 (patch)
treebaf59fe68bf9e462dcc967547cf337f9de36a1b9 /runtime
parentd835c030f24a598ef02815dfd21dd40307f9a22c (diff)
downloadrneovim-4a200ceafa475f5c4a7dc576df97a12caedd3590.tar.gz
rneovim-4a200ceafa475f5c4a7dc576df97a12caedd3590.tar.bz2
rneovim-4a200ceafa475f5c4a7dc576df97a12caedd3590.zip
test: remote/define.vim: range
Diffstat (limited to 'runtime')
-rw-r--r--runtime/autoload/remote/define.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/remote/define.vim b/runtime/autoload/remote/define.vim
index dcf773d215..b04a5d2280 100644
--- a/runtime/autoload/remote/define.vim
+++ b/runtime/autoload/remote/define.vim
@@ -157,7 +157,7 @@ endfunction
function! remote#define#FunctionOnChannel(channel, method, sync, name, opts)
let rpcargs = [a:channel, '"'.a:method.'"', 'a:000']
- if has_key(a:opts, 'range') && a:opts.range != '0'
+ if has_key(a:opts, 'range')
call add(rpcargs, '[a:firstline, a:lastline]')
endif
call s:AddEval(rpcargs, a:opts)
@@ -222,7 +222,7 @@ endfunction
function! s:GetFunctionPrefix(name, opts)
let res = "function! ".a:name."(...)"
- if has_key(a:opts, 'range') && a:opts.range != '0'
+ if has_key(a:opts, 'range')
let res = res." range"
endif
return res."\n"