refactor: move tabline code to statusline.c (#21008)

* refactor: move tabline code to statusline.c

Problem:	Tabline code is closely related to statusline, but still left over in drawscreen.c and screen.c.
Solution:	Move it to statusline.c.

* refactor: add statusline_defs.h
This commit is contained in:
luukvbaal
2022-11-10 12:05:16 +01:00
committed by GitHub
parent befae73044
commit 69507c0204
13 changed files with 461 additions and 459 deletions

View File

@@ -6,8 +6,6 @@
// for FILE
#include <stdio.h>
#include "grid_defs.h"
typedef struct file_buffer buf_T; // Forward declaration
// Reference to a buffer that stores the value of buf_free_count.
@@ -46,6 +44,8 @@ typedef struct {
#include "nvim/marktree.h"
// for float window title
#include "nvim/extmark_defs.h"
// for click definitions
#include "nvim/statusline_defs.h"
#define GETFILE_SUCCESS(x) ((x) <= 0)
#define MODIFIABLE(buf) (buf->b_p_ma)