aboutsummaryrefslogtreecommitdiff
path: root/core/ext/pm
diff options
context:
space:
mode:
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