feat(api): evaluate statusline string #16020

Adds API function `nvim_eval_statusline` to allow evaluating a
statusline string and obtaining information regarding it.

Closes https://github.com/neovim/neovim/issues/15849
This commit is contained in:
Famiu Haque
2021-10-19 01:44:17 +06:00
committed by GitHub
parent e7ea54a3df
commit 9086938f7b
5 changed files with 258 additions and 1 deletions

View File

@@ -7379,7 +7379,7 @@ void get_trans_bufname(buf_T *buf)
/*
* Get the character to use in a status line. Get its attributes in "*attr".
*/
static int fillchar_status(int *attr, win_T *wp)
int fillchar_status(int *attr, win_T *wp)
{
int fill;
bool is_curwin = (wp == curwin);