diff options
| author | Delapouite <delapouite@gmail.com> | 2017-06-06 14:29:06 +0200 |
|---|---|---|
| committer | Delapouite <delapouite@gmail.com> | 2017-06-06 14:29:06 +0200 |
| commit | 09daaa8b3a37ddc10b20e41e779ed51887265c8a (patch) | |
| tree | 6fc9cd978212df4ceab0afc543f01a022db8b6be /src | |
| parent | 73ecbdbc97f422e67ef1da9972ba7b357fa3ca12 (diff) | |
Expose kak_buf_line_count
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index 11254e78..af7f62e1 100644 --- a/src/main.cc +++ b/src/main.cc @@ -94,6 +94,10 @@ void register_env_vars() { return join(BufferManager::instance() | transform(std::mem_fn(&Buffer::display_name)), ':'); } }, { + "buf_line_count", false, + [](StringView name, const Context& context) -> String + { return to_string(context.buffer().line_count()); } + }, { "timestamp", false, [](StringView name, const Context& context) -> String { return to_string(context.buffer().timestamp()); } |
