镜像自地址
https://github.com/Hilbis/Hilbish
已同步 2025-07-11 05:22:02 +00:00
fix: check if there is cmd input before attempting to add to history (closes #206)
这个提交包含在:
父节点
22f6ea8a3e
当前提交
7db2a2c826
@ -1,5 +1,6 @@
|
|||||||
local bait = require 'bait'
|
local bait = require 'bait'
|
||||||
|
|
||||||
bait.catch('command.exit', function(_, cmd, priv)
|
bait.catch('command.exit', function(_, cmd, priv)
|
||||||
|
if not cmd then return end
|
||||||
if not priv and hilbish.opts.history then hilbish.history.add(cmd) end
|
if not priv and hilbish.opts.history then hilbish.history.add(cmd) end
|
||||||
end)
|
end)
|
||||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户