aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2021-08-11 10:38:21 +0200
committerGitHub <noreply@github.com>2021-08-11 10:38:21 +0200
commit2c60f7c99188e90739d83f3c131134b71cd37436 (patch)
tree92826f89c32d7d99837613af2f634c879f48e8a8 /src
parentc479b903598d042bf8f396cdc3ef3dc65734cbd9 (diff)
parentd475955ed3baf7c88a0b5a5418f13fd865bc01e8 (diff)
downloadrneovim-2c60f7c99188e90739d83f3c131134b71cd37436.tar.gz
rneovim-2c60f7c99188e90739d83f3c131134b71cd37436.tar.bz2
rneovim-2c60f7c99188e90739d83f3c131134b71cd37436.zip
Merge pull request #15335 from muniter/set_extmark_error_cleanup
refactor(api): remove redundant api_set_error
Diffstat (limited to 'src')
-rw-r--r--src/nvim/api/buffer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c
index 77cff0cb4f..878ffdf06f 100644
--- a/src/nvim/api/buffer.c
+++ b/src/nvim/api/buffer.c
@@ -1486,7 +1486,6 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id,
{
buf_T *buf = find_buffer_by_handle(buffer, err);
if (!buf) {
- api_set_error(err, kErrorTypeValidation, "Invalid buffer id");
return 0;
}