aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-06-23 10:10:26 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-06-23 10:10:26 -0400
commit036c57af430c0497fc4bbb4c94d7cd3c96e7f568 (patch)
treec415ca4d6baff3f86ae2f0a29f128d23b9cc40d2 /modules/textadept/find.lua
parenta9d0c389b13a09beeb8b57b43b4d3635fd5eb0f0 (diff)
downloadtextadept-036c57af430c0497fc4bbb4c94d7cd3c96e7f568.tar.gz
textadept-036c57af430c0497fc4bbb4c94d7cd3c96e7f568.zip
Updated to Scintilla 3.5.7.
Diffstat (limited to 'modules/textadept/find.lua')
-rw-r--r--modules/textadept/find.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index c5ef927d..4c369f20 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -270,7 +270,7 @@ end
-- sequences for embedding Lua code for any search.
-- @see find
local function replace(rtext)
- if buffer:get_sel_text() == '' then return end
+ if buffer.selection_empty then return end
if M.in_files then M.in_files = false end
buffer:target_from_selection()
rtext = rtext:gsub('\\[abfnrtv\\]', escapes):gsub('%%%%', '\\037')
@@ -313,7 +313,7 @@ local function replace_all(ftext, rtext)
if M.in_files then M.in_files = false end
buffer:begin_undo_action()
local count = 0
- if buffer:get_sel_text() == '' then
+ if buffer.selection_empty then
buffer:goto_pos(0)
while find_(ftext, true, nil, true) ~= -1 do
replace(rtext)