aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-07 07:21:50 +0800
committerGitHub <noreply@github.com>2022-07-07 07:21:50 +0800
commit5e84db5c90db60f68fe69b3585ba742d1a872b90 (patch)
treece06952a02c3768eba6180dc24d77421176d62ff /src/nvim/buffer.c
parent4ffe5d018919d3fbea21e667f09f14b9751f9cd5 (diff)
parentd4db87f4932a3a994cd5364c1cf85f0913a37070 (diff)
downloadrneovim-5e84db5c90db60f68fe69b3585ba742d1a872b90.tar.gz
rneovim-5e84db5c90db60f68fe69b3585ba742d1a872b90.tar.bz2
rneovim-5e84db5c90db60f68fe69b3585ba742d1a872b90.zip
Merge pull request #19261 from zeertzjq/vim-8.2.5023
vim-patch:8.2.{5023,5043,5044}: substitute textlock fixes
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 411705cfa3..7e1eae9632 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -1963,11 +1963,7 @@ int buflist_getfile(int n, linenr_T lnum, int options, int forceit)
return OK;
}
- if (text_locked()) {
- text_locked_msg();
- return FAIL;
- }
- if (curbuf_locked()) {
+ if (text_or_buf_locked()) {
return FAIL;
}