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]]
let range = [getpos("'[")[1:2], getpos("']")[1:2]]
call b:coq.log('r', 'operator', a:mode, range, a:format)
call b:coq.query(printf(a:format, s:range_text(range)))
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