aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2008-06-20 00:03:26 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2008-06-20 00:03:26 -0400
commit99c9eb3c2ec495ba3324fbec5fd95f6ba39a93f4 (patch)
tree68813ff45263d4f911838110d1113bd8adab045a /modules
parenta7689577a6668f3af7480012402780fb7b0ae5a8 (diff)
Simplified get_line in modules/lua/commands.lua.
Diffstat (limited to 'modules')
-rw-r--r--modules/lua/commands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua
index 3e46a50a..6e227262 100644
--- a/modules/lua/commands.lua
+++ b/modules/lua/commands.lua
@@ -42,7 +42,7 @@ end
-- that file, and opens it in Textadept.
function goto_required()
local buffer = buffer
- local line = buffer:get_line( buffer:line_from_position(buffer.current_pos) )
+ local line = buffer:get_cur_line()
local patterns = { 'require%s*(%b())', 'require%s*(([\'"])[^%2]+%2)' }
local file
for _, patt in ipairs(patterns) do