diff options
author | 2020-03-13 17:33:34 -0400 | |
---|---|---|
committer | 2020-03-13 17:33:34 -0400 | |
commit | 753b949ae0ff0f574a7a8247ff936be623d815c3 (patch) | |
tree | d7caf986f29b92c11677a8ed480f53ca8367dc5b /modules/textadept/editing.lua | |
parent | 2bf12e0e8ca11e37277a12123d5f6b5045d9c781 (diff) | |
download | textadept-753b949ae0ff0f574a7a8247ff936be623d815c3.tar.gz textadept-753b949ae0ff0f574a7a8247ff936be623d815c3.zip |
More code cleanup, refactoring, and reformatting.
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r-- | modules/textadept/editing.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 9d2f5e7b..bc5d8ffa 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -185,7 +185,7 @@ end) -- Auto-indent on return. events.connect(events.CHAR_ADDED, function(code) - if not M.auto_indent or code ~= 10 then return end + if not M.auto_indent or code ~= string.byte('\n') then return end local line = buffer:line_from_position(buffer.current_pos) if line > 0 and buffer:get_line(line - 1):find('^[\r\n]+$') and buffer:get_line(line):find('^[^\r\n]') then |