From 59cc2a760aab8a2eb279d79b75a2a7e020e10801 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 23 May 2014 23:32:24 -0400 Subject: 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. --- modules/textadept/keys.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/textadept/keys.lua') 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 -- cgit v1.2.3