Skip to content

Commit e1f7d90

Browse files
committed
feat: expand abbr on enter
1 parent 800a118 commit e1f7d90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nature/abbr.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ hilbish.abbr.add {
2121
}
2222

2323
bait.catch('hilbish.rawInput', function(c)
24-
if c == ' ' then -- space
24+
-- 0x0d == enter
25+
if c == ' ' or c == string.char(0x0d) then
2526
-- check if the last "word" was a valid abbreviation
2627
local line = hilbish.editor.getLine()
2728
local lineSplits = string.split(line, ' ')

0 commit comments

Comments
 (0)