Add buflines()#5370
Conversation
|
Why not just add an argument to line()? |
|
line() already have optional argument. Also winid must be window shown. |
Why is it useless? Anyway, 99.999% of the time people would want to know the size of the current buffer, in which case |
Codecov Report
@@ Coverage Diff @@
## master #5370 +/- ##
==========================================
- Coverage 82.23% 81.79% -0.44%
==========================================
Files 134 134
Lines 147604 147607 +3
==========================================
- Hits 121385 120740 -645
- Misses 26219 26867 +648
Continue to review full report at Codecov.
|
|
Hm, perhaps enhancing |
|
@chrisbra Ah, I'll add "lines" into the result of getbufinfo. |
|
Fixed patch to add |
|
at the risk of bike shading, is |
Problem: Cannot number of lines of another buffer.
Solution: Add "linecount" to getbufinfo(). (Yasuhiro Matsumoto,
closes vim/vim#5370)
vim/vim@a9e9679
Problem: Cannot number of lines of another buffer.
Solution: Add "linecount" to getbufinfo(). (Yasuhiro Matsumoto,
closes vim/vim#5370)
vim/vim@a9e9679
Problem: Cannot number of lines of another buffer.
Solution: Add "linecount" to getbufinfo(). (Yasuhiro Matsumoto,
closes vim/vim#5370)
vim/vim@a9e9679
Vim does not have a way to get number of lines for the buffer. Yes, we know
len(getbuflines(nr, 1, '$'))but useless. This change add buflines().