mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-16 13:33:47 -05:00
bugfix: fixed a bug with &selection and visual commenting
This commit is contained in:
@@ -1453,7 +1453,7 @@ function! NERDComment(isVisual, type) range
|
||||
let firstLine = line("'<")
|
||||
let lastLine = line("'>")
|
||||
let firstCol = col("'<")
|
||||
let lastCol = col("'>") - (&selection == 'exclusive' && has("gui_running") ? 1 : 0)
|
||||
let lastCol = col("'>") - (&selection == 'exclusive' ? 1 : 0)
|
||||
else
|
||||
let firstLine = a:firstline
|
||||
let lastLine = a:lastline
|
||||
|
||||
Reference in New Issue
Block a user