diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2024-05-11 11:46:54 -0600 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-05-21 20:21:46 -0600 |
| commit | f4b26ee480b6c6af1bf27126ca7294847e9d3a79 (patch) | |
| tree | e97135688a81516ddab3593939cecaf102017bd6 /view.c | |
| parent | 07b8e9d8a293d63fd9c1059968b53ad396e9f013 (diff) | |
| download | vis-f4b26ee480b6c6af1bf27126ca7294847e9d3a79.tar.gz vis-f4b26ee480b6c6af1bf27126ca7294847e9d3a79.tar.xz | |
cleanup some single line get/set functions
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -134,7 +134,7 @@ void window_status_update(Vis *vis, Win *win) { View *view = win->view; File *file = win->file; Text *txt = file->text; - int width = vis_window_width_get(win); + int width = win->ui->window_width(win->ui); enum UiOption options = view_options_get(view); bool focused = vis->win == win; const char *filename = file_name_get(file); @@ -148,7 +148,7 @@ void window_status_update(Vis *vis, Win *win) { text_modified(txt) ? " [+]" : "", vis_macro_recording(vis) ? " @": ""); - int count = vis_count_get(vis); + int count = vis->action.count; const char *keys = buffer_content0(&vis->input_queue); if (keys && keys[0]) snprintf(right_parts[right_count++], sizeof(right_parts[0]), "%s", keys); |
