diff options
author | 2014-05-23 23:32:24 -0400 | |
---|---|---|
committer | 2014-05-23 23:32:24 -0400 | |
commit | 59cc2a760aab8a2eb279d79b75a2a7e020e10801 (patch) | |
tree | 8bfacb6aa1f6d5ac7d2a1e58ae9fd446d8f05264 /modules/textadept/keys.lua | |
parent | 113137d4fe3f71fa13f2d3387bb2f8801134de26 (diff) | |
download | textadept-59cc2a760aab8a2eb279d79b75a2a7e020e10801.tar.gz textadept-59cc2a760aab8a2eb279d79b75a2a7e020e10801.zip |
Renamed `textadept.editing.autocomplete_word()` and added `AUTOCOMPLETE_ALL`.
The new `textadept.editing.autocomplete()` is a generic function for a new
autocompletion framework that will replace Adeptsense. The framework involves
individual autocompletion functions, such as one for autocompleting words.
Also added new `AUTOCOMPLETE_ALL` setting for searching all buffers for word
completions.
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r-- | modules/textadept/keys.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index e8315246..781d8860 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -261,7 +261,7 @@ M.utils = { events.emit(events.UPDATE_UI) -- for updating statusbar end, set_encoding = function(encoding) - io.set_buffer_encoding(encoding) + buffer:set_encoding(encoding) events.emit(events.UPDATE_UI) -- for updating statusbar end, set_eol_mode = function(mode) @@ -388,7 +388,7 @@ keys[not OSX and (not CURSES and 'adel' or 'mdel') keys[not OSX and not CURSES and 'ca' or 'ma'] = buffer.select_all keys[not CURSES and 'cm' or 'mm'] = editing.match_brace keys[not OSX and (not CURSES and 'c\n' or 'cmj') - or 'cesc'] = editing.autocomplete_word + or 'cesc'] = {editing.autocomplete, 'word'} if CURSES and WIN32 then keys['c\r'] = keys['cmj'] end if not CURSES then keys[not OSX and 'caH' or 'mH'] = editing.highlight_word |