From 6adc2ae7e0d86f7b2a4292a666eeaa50a1473915 Mon Sep 17 00:00:00 2001 From: bfredl Date: Fri, 19 Aug 2022 12:37:58 +0200 Subject: refactor: move statusline code from buffer.c and [draw]screen.c to new file problem: code for drawing statusline is arbitrarily spreadout between drawscreen.c, screen.c and buffer.c solution: move it to a new file statusline.c - rename archaic internal name "status match" to public name "wildmenu" - showruler() does not show the ruler. it show anything which displays info about the cursor. Rename it accordingy. --- src/nvim/statusline.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/nvim/statusline.h (limited to 'src/nvim/statusline.h') diff --git a/src/nvim/statusline.h b/src/nvim/statusline.h new file mode 100644 index 0000000000..357a9a821f --- /dev/null +++ b/src/nvim/statusline.h @@ -0,0 +1,10 @@ +#ifndef NVIM_STATUSLINE_H +#define NVIM_STATUSLINE_H + +#include "nvim/buffer_defs.h" + +#ifdef INCLUDE_GENERATED_DECLARATIONS +# include "statusline.h.generated.h" +#endif + +#endif // NVIM_STATUSLINE_H -- cgit