From 78990df4f114c45adc7fd2678ffaedf0c4124d95 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 29 Apr 2013 16:13:59 -0400 Subject: More code cleanup. "local buffer = buffer" and similar optimizations are not needed since lexing the buffer is much more expensive and reaction time is limited by how fast the keyboard can submit key presses. --- modules/textadept/run.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'modules/textadept/run.lua') diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index e5965fde..91c8a522 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -218,7 +218,6 @@ function M.goto_error(line, next) -- If no line was given, find the next error marker. if not line and next ~= nil then - local buffer = buffer local f = buffer['marker_'..(next and 'next' or 'previous')] line = f(buffer, buffer:line_from_position(buffer.current_pos) + (next and 1 or -1), 2^MARK_ERROR) -- cgit v1.2.3