From 9cbe218f271ac97c5562b610fc2e2ebbd947fc3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 17 May 2018 21:50:18 +0200 Subject: vis: display count/input queue content in status bar Fix #695 --- lua/vis-std.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lua') diff --git a/lua/vis-std.lua b/lua/vis-std.lua index f0607f2..05bf832 100644 --- a/lua/vis-std.lua +++ b/lua/vis-std.lua @@ -91,6 +91,14 @@ vis.events.subscribe(vis.events.WIN_STATUS, function(win) table.insert(left_parts, (file.name or '[No Name]') .. (file.modified and ' [+]' or '') .. (vis.recording and ' @' or '')) + local count = vis.count + local keys = vis.input_queue + if keys ~= '' then + table.insert(right_parts, keys) + elseif count then + table.insert(right_parts, count) + end + if #win.selections > 1 then table.insert(right_parts, selection.number..'/'..#win.selections) end -- cgit v1.2.3