mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
vim-patch:8.2.0019: cannot number of lines of another buffer
Problem: Cannot number of lines of another buffer.
Solution: Add "linecount" to getbufinfo(). (Yasuhiro Matsumoto,
closes vim/vim#5370)
a9e9679de3
This commit is contained in:
@@ -9922,6 +9922,7 @@ static dict_T *get_buffer_info(buf_T *buf)
|
||||
buf->b_ffname != NULL ? (const char *)buf->b_ffname : "");
|
||||
tv_dict_add_nr(dict, S_LEN("lnum"),
|
||||
buf == curbuf ? curwin->w_cursor.lnum : buflist_findlnum(buf));
|
||||
tv_dict_add_nr(dict, S_LEN("linecount"), buf->b_ml.ml_line_count);
|
||||
tv_dict_add_nr(dict, S_LEN("loaded"), buf->b_ml.ml_mfp != NULL);
|
||||
tv_dict_add_nr(dict, S_LEN("listed"), buf->b_p_bl);
|
||||
tv_dict_add_nr(dict, S_LEN("changed"), bufIsChanged(buf));
|
||||
|
Reference in New Issue
Block a user