aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2025-02-24 09:58:43 -0800
committerChristian Clason <ch.clason+github@icloud.com>2025-02-26 01:08:51 +0100
commit93278e7720b23dd4762b414f1aa6c2a292a9ce07 (patch)
tree069538368377ef1469180d07b1d3538af8b9f431 /src
parent23f7e5593db2b4c2d6c1a17de8497a653b4826e3 (diff)
downloadrneovim-93278e7720b23dd4762b414f1aa6c2a292a9ce07.tar.gz
rneovim-93278e7720b23dd4762b414f1aa6c2a292a9ce07.tar.bz2
rneovim-93278e7720b23dd4762b414f1aa6c2a292a9ce07.zip
fix(extmark): clearer error message for invalid ephemeral mark usage
Diffstat (limited to 'src')
-rw-r--r--src/nvim/api/extmark.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c
index a6aadc2430..fa74d9a667 100644
--- a/src/nvim/api/extmark.c
+++ b/src/nvim/api/extmark.c
@@ -829,7 +829,8 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id, Integer line, Integer
}
} else {
if (opts->ephemeral) {
- api_set_error(err, kErrorTypeException, "not yet implemented");
+ api_set_error(err, kErrorTypeException,
+ "cannot set emphemeral mark outside of a decoration provider");
goto error;
}