bugfix: fixed a bug with &selection and visual commenting

This commit is contained in:
marty
2008-02-24 00:31:27 +13:00
parent f8c60c7bd8
commit 59735a2904
2 changed files with 5 additions and 1 deletions

View File

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