mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-12 11:43:46 -05:00
bugfix: now we take into account the &selection option and adjust visual selections accordingly
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user