aboutsummaryrefslogtreecommitdiffstats
path: root/vis-commentary.lua
diff options
context:
space:
mode:
Diffstat (limited to 'vis-commentary.lua')
-rw-r--r--vis-commentary.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-commentary.lua b/vis-commentary.lua
index a9c61c4..a483ac5 100644
--- a/vis-commentary.lua
+++ b/vis-commentary.lua
@@ -123,6 +123,7 @@ end, "Toggle comment on a the current line")
local function visual_f(i)
return function()
local win = vis.win
+ local lines = win.file.lines
local comment = comment_string[win.syntax]
if not comment then return end
@@ -141,7 +142,6 @@ local function visual_f(i)
sel.pos = r.finish
local b = sel.line - i
- local lines = win.file.lines
block_comment(lines, a, b, prefix, suffix)
sel:to(lnum, col) -- restore cursor position