comparison src/evalbuffer.c @ 18916:cf051bdefb3f v8.2.0019

patch 8.2.0019: cannot number of lines of another buffer Commit: https://github.com/vim/vim/commit/a9e9679de3ef082ee29868ab404283dfc53258f2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 17 22:40:15 2019 +0100 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 #5370)
author Bram Moolenaar <Bram@vim.org>
date Tue, 17 Dec 2019 22:45:03 +0100
parents 3a68dc2a1bc1
children 94eda51ba9ba
comparison
equal deleted inserted replaced
18915:0a2d1ed58482 18916:cf051bdefb3f
543 543
544 dict_add_number(dict, "bufnr", buf->b_fnum); 544 dict_add_number(dict, "bufnr", buf->b_fnum);
545 dict_add_string(dict, "name", buf->b_ffname); 545 dict_add_string(dict, "name", buf->b_ffname);
546 dict_add_number(dict, "lnum", buf == curbuf ? curwin->w_cursor.lnum 546 dict_add_number(dict, "lnum", buf == curbuf ? curwin->w_cursor.lnum
547 : buflist_findlnum(buf)); 547 : buflist_findlnum(buf));
548 dict_add_number(dict, "linecount", buf->b_ml.ml_line_count);
548 dict_add_number(dict, "loaded", buf->b_ml.ml_mfp != NULL); 549 dict_add_number(dict, "loaded", buf->b_ml.ml_mfp != NULL);
549 dict_add_number(dict, "listed", buf->b_p_bl); 550 dict_add_number(dict, "listed", buf->b_p_bl);
550 dict_add_number(dict, "changed", bufIsChanged(buf)); 551 dict_add_number(dict, "changed", bufIsChanged(buf));
551 dict_add_number(dict, "changedtick", CHANGEDTICK(buf)); 552 dict_add_number(dict, "changedtick", CHANGEDTICK(buf));
552 dict_add_number(dict, "hidden", 553 dict_add_number(dict, "hidden",