summaryrefslogtreecommitdiff
path: root/xmake/plugins/lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/lua')
-rw-r--r--xmake/plugins/lua/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/lua/xmake.lua b/xmake/plugins/lua/xmake.lua
index 269e1b944..efa044f4b 100644
--- a/xmake/plugins/lua/xmake.lua
+++ b/xmake/plugins/lua/xmake.lua
@@ -78,7 +78,7 @@ task("lua")
if enable_readline then
-- save to history
- local entries = readline.get_history_state().entries
+ local entries = readline.history_list()
if #entries > #replhistory then
for i = #replhistory+1, #entries do
history.save("replhistory", entries[i].line)