summaryrefslogtreecommitdiff
path: root/xmake/plugins/lua/xmake.lua
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-10 15:43:55 +0800
committerTitanSnow <[email protected]>2017-05-10 15:43:55 +0800
commit5894c5279ca8fc5757eb697bfd901889a4b9e065 (patch)
treea6a09160696c968936ea2c63a3ff561fc37b3fa9 /xmake/plugins/lua/xmake.lua
parent067d960804f438b5759f6b094a929a94b20b4deb (diff)
get_history_state -> history_list
Diffstat (limited to 'xmake/plugins/lua/xmake.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)