diff options
author | 2009-02-15 14:48:35 -0500 | |
---|---|---|
committer | 2009-02-15 14:48:35 -0500 | |
commit | 950467275af67f71afd120ae6f38f9fb96af8946 (patch) | |
tree | a0e88d6c91d1c5284c22c258920f56c153fe7e6a | |
parent | 98f1c9b84bcc7ad535dbabe2c2c270c43e9eeb7d (diff) | |
download | textadept-950467275af67f71afd120ae6f38f9fb96af8946.tar.gz textadept-950467275af67f71afd120ae6f38f9fb96af8946.zip |
Only use escape sequences in Lua pattern searches; core/ext/find.lua
-rw-r--r-- | core/ext/find.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ext/find.lua b/core/ext/find.lua index 1f177545..d56894c4 100644 --- a/core/ext/find.lua +++ b/core/ext/find.lua @@ -54,7 +54,6 @@ function find.find(text, next, flags, nowrap, wrapped) local result find.captures = nil - text = text:gsub('\\[abfnrtv\\]', escapes) if flags < 8 then buffer:goto_pos(buffer[next and 'current_pos' or 'anchor'] + increment) @@ -67,6 +66,7 @@ function find.find(text, next, flags, nowrap, wrapped) if result ~= -1 then buffer:scroll_caret() end elseif flags < 16 then -- lua pattern search (forward search only) + text = text:gsub('\\[abfnrtv\\]', escapes) local buffer_text = buffer:get_text(buffer.length) local results = { buffer_text:find(text, buffer.anchor + increment) } if #results > 0 then |