mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-20 20:43:23 +00:00
feat: expand abbr on enter
This commit is contained in:
parent
800a1184a2
commit
e1f7d907a2
@ -21,7 +21,8 @@ hilbish.abbr.add {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bait.catch('hilbish.rawInput', function(c)
|
bait.catch('hilbish.rawInput', function(c)
|
||||||
if c == ' ' then -- space
|
-- 0x0d == enter
|
||||||
|
if c == ' ' or c == string.char(0x0d) then
|
||||||
-- check if the last "word" was a valid abbreviation
|
-- check if the last "word" was a valid abbreviation
|
||||||
local line = hilbish.editor.getLine()
|
local line = hilbish.editor.getLine()
|
||||||
local lineSplits = string.split(line, ' ')
|
local lineSplits = string.split(line, ' ')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user