From 3b70b4b56802f1115bd5dac04bdcb95a38c23823 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 24 Apr 2013 09:36:27 -0400 Subject: Use `buffer.word_chars` for autocompleting words instead of a Lua pattern. --- modules/textadept/keys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/keys.lua') diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index b2633783..d8b48ff2 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -390,7 +390,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'] = m_editing.match_brace keys[not OSX and (not CURSES and 'c\n' or 'cmj') - or 'cesc'] = {m_editing.autocomplete_word, '%w_'} + or 'cesc'] = m_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'] = m_editing.highlight_word -- cgit v1.2.3