From 825f6a76c4c938f0978a9454b20e9ac502a246fc Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 15 Feb 2009 23:41:00 -0500 Subject: Removed buggy 'Select in Structure' from _m.textadept.editing. --- modules/textadept/editing.lua | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'modules/textadept') 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 -- cgit v1.2.3