diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-09-16 21:26:43 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-09-16 21:26:43 -0400 |
commit | 095980fbbc1f5f4956afdee2802b87ce45f245e7 (patch) | |
tree | f1c214a39b66bd939dde2f7deb26e449f7fe57c9 /modules | |
parent | dbef5c3fa8ca9f842f75a6db1f0aa0fb029a4be6 (diff) |
Removed the `SC_` prefix from constants in `_SCINTILLA.constants`.
Also removed more unused constants.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/adeptsense.lua | 9 | ||||
-rw-r--r-- | modules/textadept/find.lua | 4 | ||||
-rw-r--r-- | modules/textadept/keys.lua | 6 | ||||
-rw-r--r-- | modules/textadept/menu.lua | 6 | ||||
-rw-r--r-- | modules/textadept/snippets.lua | 5 |
5 files changed, 15 insertions, 15 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index 63ee855b..be350c75 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -715,10 +715,11 @@ end) --- -- Loads the Ctags file *tag_file* for autocompletions. --- If *nolocations* is `true`, `sense:goto_ctag()` cannot be used with this set --- of tags. It is recommended to pass `-n` to `ctags` in order to use line --- numbers instead of text patterns to locate tags. This will greatly reduce --- memory usage for a large number of symbols if `nolocations` is `false`. +-- *nolocations* indicates whether or not to store the location part of tags. If +-- `true`, `sense:goto_ctag()` cannot be used with this set of tags. It is +-- recommended to pass `-n` to `ctags` in order to use line numbers instead of +-- text patterns to locate tags. This will greatly reduce memory usage for a +-- large number of symbols if *nolocations* is `false`. -- @param sense The Adeptsense returned by `adeptsense.new()`. -- @param tag_file The path of the Ctags file to load. -- @param nolocations Optional flag indicating whether or not to discard the diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index 0e912367..b4be38b5 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -188,8 +188,8 @@ end -- Begins an incremental search using the command entry if *text* is `nil`; -- otherwise continues an incremental search by searching for the next or -- previous instance of string *text* depending on boolean *next*. --- If *anchor* is `true`, searches for *text* starting from the current position --- instead of the position where incremental search began at. +-- *anchor* indicates whether or not to search for *text* starting from the +-- current position instead of the position where incremental search began at. -- Only the `match_case` find option is recognized. Normal command entry -- functionality is unavailable until the search is finished by pressing `Esc` -- (`⎋` on Mac OSX | `Esc` in curses). diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index f7cb599b..c140c095 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -511,9 +511,9 @@ if CURSES then keys.mT = keys.mt end -- in case mt is used by GUI terminals keys[not OSX and (not CURSES and 'cai' or 'mi') or 'ci'] = editing.convert_indentation -- EOL Mode. --- TODO: {utils.set_eol_mode, buffer.SC_EOL_CRLF} --- TODO: {utils.set_eol_mode, buffer.SC_EOL_CR} --- TODO: {utils.set_eol_mode, buffer.SC_EOL_LF} +-- TODO: {utils.set_eol_mode, buffer.EOL_CRLF} +-- TODO: {utils.set_eol_mode, buffer.EOL_CR} +-- TODO: {utils.set_eol_mode, buffer.EOL_LF} -- Encoding. -- TODO: {utils.set_encoding, 'UTF-8'} -- TODO: {utils.set_encoding, 'ASCII'} diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index af8e7550..fbb74499 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -145,9 +145,9 @@ local menubar = { {_L['_Convert Indentation'], editing.convert_indentation}, }, { title = _L['_EOL Mode'], - {_L['CRLF'], {utils.set_eol_mode, buffer.SC_EOL_CRLF}}, - {_L['CR'], {utils.set_eol_mode, buffer.SC_EOL_CR}}, - {_L['LF'], {utils.set_eol_mode, buffer.SC_EOL_LF}}, + {_L['CRLF'], {utils.set_eol_mode, buffer.EOL_CRLF}}, + {_L['CR'], {utils.set_eol_mode, buffer.EOL_CR}}, + {_L['LF'], {utils.set_eol_mode, buffer.EOL_LF}}, }, { title = _L['E_ncoding'], {_L['_UTF-8 Encoding'], {utils.set_encoding, 'UTF-8'}}, diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua index 9b8e8bda..6a664792 100644 --- a/modules/textadept/snippets.lua +++ b/modules/textadept/snippets.lua @@ -48,7 +48,7 @@ local M = {} -- -- Textadept runs Lua code in its Lua State and replaces the transform with the -- code's return text. The code may use a temporary `selected_text` global --- variable that contains the current selection in the buffer. An example is +-- variable that contains the currently selected text. An example is -- -- snippets['foo'] = [[ -- %2<('%1'):gsub('^.', function(c) @@ -364,8 +364,7 @@ M._snippet_mt = { buffer.indicator_current = INDIC_SNIPPET e = snippet:get_end_position() buffer:indicator_clear_range(e, 1) - buffer.target_start, buffer.target_end = e, e + 1 - buffer:replace_target('') -- clear initial padding space + buffer:delete_range(e, 1) -- clear initial padding space snippet_stack[#snippet_stack] = nil end, } |