bugfix: now we take into account the &selection option and adjust visual selections accordingly

This commit is contained in:
marty 2008-02-06 20:23:54 +13:00
parent d1af8af555
commit 122490be95

View File

@ -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