From f4b26ee480b6c6af1bf27126ca7294847e9d3a79 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sat, 11 May 2024 11:46:54 -0600 Subject: cleanup some single line get/set functions --- view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view.c') diff --git a/view.c b/view.c index f27760b..6f3138f 100644 --- a/view.c +++ b/view.c @@ -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); -- cgit v1.2.3