diff options
author | Famiu Haque <famiuhaque@proton.me> | 2023-10-22 00:59:47 +0600 |
---|---|---|
committer | Famiu Haque <famiuhaque@proton.me> | 2023-10-22 01:17:27 +0600 |
commit | 9d01385c6ca6e2ad950f14e0102a4e4e1dae6147 (patch) | |
tree | 34e9f89537e204e57544fe683177a829bbf262c0 /runtime/lua/vim/snippet.lua | |
parent | 40574b424f48308e06093031b1324509b64a8cc3 (diff) | |
download | rneovim-9d01385c6ca6e2ad950f14e0102a4e4e1dae6147.tar.gz rneovim-9d01385c6ca6e2ad950f14e0102a4e4e1dae6147.tar.bz2 rneovim-9d01385c6ca6e2ad950f14e0102a4e4e1dae6147.zip |
fix(options): `'modified'` showing incorrect value for scratch buffers
Problem: #25716 removed the logic for getting the correct value of the `'modified'` option when using `nvim_buf_get_option()`. So the function now returns an incorrect value of `'modified'` for scratch buffers.
Solution: Re-add the logic for getting the correct value of `'modified'`. Also make it so that the logic only exists in one place instead of being duplicated across multiple places in the code.
Diffstat (limited to 'runtime/lua/vim/snippet.lua')
0 files changed, 0 insertions, 0 deletions