From 122490be95f526797e12c80c22c7a7f73a1615a0 Mon Sep 17 00:00:00 2001 From: marty Date: Wed, 6 Feb 2008 20:23:54 +1300 Subject: [PATCH] bugfix: now we take into account the &selection option and adjust visual selections accordingly --- plugin/NERD_commenter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 3b0187b..01af8ff 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -1447,7 +1447,7 @@ function! NERDComment(isVisual, type) range let firstLine = line("'<") let lastLine = line("'>") let firstCol = col("'<") - let lastCol = col("'>") + let lastCol = col("'>") - (&selection == 'exclusive' && has("gui_running") ? 1 : 0) else let firstLine = a:firstline let lastLine = a:lastline