Commit 6f2e5fde authored by Manu Beffara's avatar Manu Beffara
Browse files

Fixed text extraction for query operators.

parent 867814cb
......@@ -1444,7 +1444,12 @@ endfunction
" and the second argument is a printf template for the query.
function! s:operator (mode, format)
let range = [getpos("'[")[1:2], getpos("']")[1:2]]
if a:mode ==? 'v'
let range = [getpos("'<")[1:2], getpos("'>")[1:2]]
else
let range = [getpos("'[")[1:2], getpos("']")[1:2]]
endif
call b:coq.log('r', 'operator', a:mode, range, a:format)
call b:coq.query(printf(a:format, s:range_text(range)))
endfunction
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment