diff options
| author | ruki <[email protected]> | 2017-05-11 00:05:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-11 00:05:25 +0800 |
| commit | 18cc92064b4331e3d4fb5ca63ef3723b955d4448 (patch) | |
| tree | aea22341d7a5056c8337e011acd8fb7ec1d55f8d /xmake/plugins/macro/main.lua | |
| parent | 7d461c4de3e3476366b53aa67dd17f4f1e785ee2 (diff) | |
save global repl history
Diffstat (limited to 'xmake/plugins/macro/main.lua')
| -rw-r--r-- | xmake/plugins/macro/main.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/plugins/macro/main.lua b/xmake/plugins/macro/main.lua index ca2ca02b2..1fbd26207 100644 --- a/xmake/plugins/macro/main.lua +++ b/xmake/plugins/macro/main.lua @@ -201,6 +201,9 @@ end -- begin to record macro function _begin() + -- enter local history + history.enter("local.history") + -- patch begin tag to the history: cmdlines history.save("cmdlines", "__macro_begin__") end @@ -208,6 +211,9 @@ end -- end to record macro function _end(macroname) + -- enter local history + history.enter("local.history") + -- load the history: cmdlines local cmdlines = history.load("cmdlines") |
