Add current history id to env variables

This commit is contained in:
Francesco Magliocca 2017-09-02 12:14:19 +02:00
parent 8cef1932a0
commit b3ac4d86b6

View File

@ -93,6 +93,10 @@ void register_env_vars()
"timestamp", false,
[](StringView name, const Context& context) -> String
{ return to_string(context.buffer().timestamp()); }
}, {
"curr_history_id", false,
[](StringView name, const Context& context) -> String
{ return to_string(context.buffer().current_history_id()); }
}, {
"selection", false,
[](StringView name, const Context& context)