aboutsummaryrefslogtreecommitdiff
path: root/core/ext/pm
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-03-01 15:47:27 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-03-01 15:47:27 -0500
commitc2c910627f6b8dc4bd638d2d83b3dcf83d92b857 (patch)
tree357506c1d7864b6ddd6a3d477e2672c65d07ba01 /core/ext/pm
parent713578e58c701470e69566adbc53a7c405426cf0 (diff)
downloadtextadept-c2c910627f6b8dc4bd638d2d83b3dcf83d92b857.tar.gz
textadept-c2c910627f6b8dc4bd638d2d83b3dcf83d92b857.zip
Use buffer:text_range() instead of buffer:get_text() because of trailing '\0'.
Diffstat (limited to 'core/ext/pm')
-rw-r--r--core/ext/pm/ctags_browser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ext/pm/ctags_browser.lua b/core/ext/pm/ctags_browser.lua
index 23556f68..a0d8aaa2 100644
--- a/core/ext/pm/ctags_browser.lua
+++ b/core/ext/pm/ctags_browser.lua
@@ -211,7 +211,7 @@ function perform_action(selected_item)
if item.children then item = item.children end
end
if item.pattern then
- local buffer_text = buffer:get_text(buffer.length)
+ local buffer_text = buffer:text_range(0, buffer.length)
local search_text = item.pattern:gsub('\\/', '/')
local s = buffer_text:find(search_text, 1, true)
if s then