aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/vimscript_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-01-02 12:33:41 -0800
committerGitHub <noreply@github.com>2024-01-02 12:33:41 -0800
commit3f35c69b23d1bc951f158e4e3d8e554f89bd1037 (patch)
treedc4f272a6a7968089d17fd741c37628d6d59fd35 /test/functional/legacy/vimscript_spec.lua
parent91d76ac941a26f8370c48e062b5e09f98c75f7bc (diff)
downloadrneovim-3f35c69b23d1bc951f158e4e3d8e554f89bd1037.tar.gz
rneovim-3f35c69b23d1bc951f158e4e3d8e554f89bd1037.tar.bz2
rneovim-3f35c69b23d1bc951f158e4e3d8e554f89bd1037.zip
refactor(api): redundant `ml_mfp` check #26059
buf_ensure_loaded already checks `(buf->b_ml.ml_mfp != NULL)`. #25823 TODO: - #10070 #13201 All buffer-related API functions except `nvim_buf_is_loaded` (and `nvim_buf_is_valid`?) should always call `buf_ensure_loaded`. Because the _common case_ is that plugins expect the buffer to "just work"—and for the uncomon, performance-sensitive case, the script can check `nvim_buf_is_loaded` to avoid implicitly loading a buffer. - Update documentation to clarify the above semantics.
Diffstat (limited to 'test/functional/legacy/vimscript_spec.lua')
0 files changed, 0 insertions, 0 deletions