diff options
author | 2011-11-23 07:23:51 -0500 | |
---|---|---|
committer | 2011-11-23 07:23:51 -0500 | |
commit | f1db4cacfe3aa49ac03e50f05ea522e69b1a0b63 (patch) | |
tree | dcc12aa745b80e40c5592ae879b06fc4b028077a /modules/textadept/editing.lua | |
parent | 10cd8e9477e9e3ead6c12110bcc9f67924f540cd (diff) | |
download | textadept-f1db4cacfe3aa49ac03e50f05ea522e69b1a0b63.tar.gz textadept-f1db4cacfe3aa49ac03e50f05ea522e69b1a0b63.zip |
Removed _m.textadept.editing.select_style().
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r-- | modules/textadept/editing.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 83dd1fd1..4d885a81 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -426,20 +426,6 @@ function select_indented_block() end --- --- Selects all text with the same style as under the caret. -function select_style() - local buffer = buffer - local start_pos, length = buffer.current_pos, buffer.length - local base_style, style_at = buffer.style_at[start_pos], buffer.style_at - local pos = start_pos - 1 - while pos >= 0 and style_at[pos] == base_style do pos = pos - 1 end - local start_style = pos - pos = start_pos + 1 - while pos < length and style_at[pos] == base_style do pos = pos + 1 end - buffer:set_sel(start_style + 1, pos) -end - ---- -- Converts indentation between tabs and spaces. function convert_indentation() local buffer = buffer |