comparison runtime/doc/eval.txt @ 21381:95e6fb6a5c86 v8.2.1241

patch 8.2.1241: cannot use getbufinfo() as a method Commit: https://github.com/vim/vim/commit/6434fc574dfbde11461e70e5a62712370edf38e6 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 18 22:24:22 2020 +0200 patch 8.2.1241: cannot use getbufinfo() as a method Problem: Cannot use getbufinfo() as a method. Solution: Support using getbufinfo() as a method. (closes https://github.com/vim/vim/issues/6458)
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Jul 2020 22:30:04 +0200
parents 21fb2a3ad3ca
children 2c40e60017a8
comparison
equal deleted inserted replaced
21380:17c6dd970b13 21381:95e6fb6a5c86
4927 endif 4927 endif
4928 endfor 4928 endfor
4929 < 4929 <
4930 To get buffer-local options use: > 4930 To get buffer-local options use: >
4931 getbufvar({bufnr}, '&option_name') 4931 getbufvar({bufnr}, '&option_name')
4932 4932 <
4933 < 4933 Can also be used as a |method|: >
4934 GetBufnr()->getbufinfo()
4935 <
4936
4934 *getbufline()* 4937 *getbufline()*
4935 getbufline({expr}, {lnum} [, {end}]) 4938 getbufline({expr}, {lnum} [, {end}])
4936 Return a |List| with the lines starting from {lnum} to {end} 4939 Return a |List| with the lines starting from {lnum} to {end}
4937 (inclusive) in the buffer {expr}. If {end} is omitted, a 4940 (inclusive) in the buffer {expr}. If {end} is omitted, a
4938 |List| with only the line {lnum} is returned. 4941 |List| with only the line {lnum} is returned.