mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(extmark): clearer error message for invalid ephemeral mark usage
This commit is contained in:
committed by
Christian Clason
parent
23f7e5593d
commit
93278e7720
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user