diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2018-05-17 21:50:18 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2018-05-17 21:51:41 +0200 |
| commit | 9cbe218f271ac97c5562b610fc2e2ebbd947fc3a (patch) | |
| tree | a7cd9c44a24ef8480e3dff66527f7f6c69205e12 /vis-lua.c | |
| parent | 50b49e661aea8d7b9873a9e84a51f72b3121ad52 (diff) | |
| download | vis-9cbe218f271ac97c5562b610fc2e2ebbd947fc3a.tar.gz vis-9cbe218f271ac97c5562b610fc2e2ebbd947fc3a.tar.xz | |
vis: display count/input queue content in status bar
Fix #695
Diffstat (limited to 'vis-lua.c')
| -rw-r--r-- | vis-lua.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -79,6 +79,13 @@ static void window_status_update(Vis *vis, Win *win) { vis_macro_recording(vis) ? " @": ""); left_count++; + int count = vis_count_get(vis); + const char *keys = buffer_content0(&vis->input_queue); + if (keys && keys[0]) + snprintf(right_parts[right_count++], sizeof(right_parts[0]), "%s", keys); + else if (count != VIS_COUNT_UNKNOWN) + snprintf(right_parts[right_count++], sizeof(right_parts[0]), "%d", count); + int sel_count = view_selections_count(view); if (sel_count > 1) { Selection *s = view_selections_primary_get(view); |
