diff options
author | 2009-01-25 20:55:41 -0500 | |
---|---|---|
committer | 2009-01-25 20:55:41 -0500 | |
commit | f0dceb28f133d8392c8947155dc8582ec7737783 (patch) | |
tree | bdd7ac0b2698bd5a3eee4f460ddcbf1b6dfa336f /core/ext | |
parent | dfd5773f2822af13afb5c8fea3ebd0491bca97da (diff) | |
download | textadept-f0dceb28f133d8392c8947155dc8582ec7737783.tar.gz textadept-f0dceb28f133d8392c8947155dc8582ec7737783.zip |
goto_file shouldn't depend on _m.textadept.editing.goto_line; core/ext/find.lua
Diffstat (limited to 'core/ext')
-rw-r--r-- | core/ext/find.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ext/find.lua b/core/ext/find.lua index 90cb2176..0b26ba45 100644 --- a/core/ext/find.lua +++ b/core/ext/find.lua @@ -216,7 +216,8 @@ function goto_file(pos, line_num) line = buffer:get_line(line_num) local file, line_num = line:match('^(.+):(%d+):.+$') textadept.io.open(file) - _m.textadept.editing.goto_line(line_num) + buffer:ensure_visible_enforce_policy(line_num - 1) + buffer:goto_line(line_num - 1) end end textadept.events.add_handler('double_click', goto_file) |