mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-02-01 13:49:44 +08:00
bugfix: now we take into account the &selection option and adjust visual selections accordingly
This commit is contained in:
parent
d1af8af555
commit
122490be95
|
@ -1447,7 +1447,7 @@ function! NERDComment(isVisual, type) range
|
||||||
let firstLine = line("'<")
|
let firstLine = line("'<")
|
||||||
let lastLine = line("'>")
|
let lastLine = line("'>")
|
||||||
let firstCol = col("'<")
|
let firstCol = col("'<")
|
||||||
let lastCol = col("'>")
|
let lastCol = col("'>") - (&selection == 'exclusive' && has("gui_running") ? 1 : 0)
|
||||||
else
|
else
|
||||||
let firstLine = a:firstline
|
let firstLine = a:firstline
|
||||||
let lastLine = a:lastline
|
let lastLine = a:lastline
|
||||||
|
|
Loading…
Reference in New Issue
Block a user