aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-08-26 12:35:22 +0200
committerGitHub <noreply@github.com>2023-08-26 12:35:22 +0200
commit1bdcb9aaf11e914d4c7af14e8e5be4ed3c5798ae (patch)
treeb86dfc90f7208a5225e2479b8fceda38d44001e3 /src/nvim/eval
parent5bb17958c5694a28bd6b97f97adb4064bc79b984 (diff)
parent008154954791001efcc46c28146e21403f3a698b (diff)
downloadrneovim-1bdcb9aaf11e914d4c7af14e8e5be4ed3c5798ae.tar.gz
rneovim-1bdcb9aaf11e914d4c7af14e8e5be4ed3c5798ae.tar.bz2
rneovim-1bdcb9aaf11e914d4c7af14e8e5be4ed3c5798ae.zip
Merge pull request #24824 from bfredl/nocurbuf
refactor(change): do API changes to buffer without curbuf switch
Diffstat (limited to 'src/nvim/eval')
-rw-r--r--src/nvim/eval/buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/eval/buffer.c b/src/nvim/eval/buffer.c
index 4dbfcd2938..b480d25367 100644
--- a/src/nvim/eval/buffer.c
+++ b/src/nvim/eval/buffer.c
@@ -301,7 +301,8 @@ void f_bufload(typval_T *argvars, typval_T *unused, EvalFuncData fptr)
buf_T *buf = get_buf_arg(&argvars[0]);
if (buf != NULL) {
- buffer_ensure_loaded(buf);
+ swap_exists_action = SEA_NONE;
+ buf_ensure_loaded(buf);
}
}