fix(extmark): clearer error message for invalid ephemeral mark usage

This commit is contained in:
Riley Bruins
2025-02-24 09:58:43 -08:00
committed by Christian Clason
parent 23f7e5593d
commit 93278e7720

View File

@ -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;
}