aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/editing.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-02-15 23:41:00 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-02-15 23:41:00 -0500
commit825f6a76c4c938f0978a9454b20e9ac502a246fc (patch)
tree5d68de0339d7af2b276f022692609ce9052f9ef0 /modules/textadept/editing.lua
parent8a17d69de5c83a02f53a9aa2f2c3689b875d3814 (diff)
downloadtextadept-825f6a76c4c938f0978a9454b20e9ac502a246fc.tar.gz
textadept-825f6a76c4c938f0978a9454b20e9ac502a246fc.zip
Removed buggy 'Select in Structure' from _m.textadept.editing.
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r--modules/textadept/editing.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index a7c0e674..545f2e52 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -490,26 +490,6 @@ function select_enclosed(str)
local s = buffer:search_prev(0, enclosure[str].left)
local e = buffer:search_next(0, enclosure[str].right)
if s and e then buffer:set_sel(s + 1, e) end
- else
- -- TODO: ignore enclosures in comment scopes?
- s, e = buffer.anchor, buffer.current_pos
- if s > e then s, e = e, s end
- local char = string.char(buffer.char_at[s - 1])
- if s ~= e and char_matches[char] then
- s, e = s - 2, e + 1 -- don't match the same enclosure
- end
- while s >= 0 do
- char = string.char(buffer.char_at[s])
- if char_matches[char] then
- buffer.target_start, buffer.target_end = e, buffer.length
- buffer.search_flags = 0
- if buffer:search_in_target(char_matches[char]) ~= -1 then
- e = buffer.target_end
- end
- if e then buffer:set_sel(s + 1, e - 1) break end
- end
- s = s - 1
- end
end
end