mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
API: Refactor: Fix buffer_get_mark
This commit is contained in:
@@ -364,7 +364,7 @@ Position buffer_get_mark(Buffer buffer, String name, Error *err)
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name.size != 0) {
|
if (name.size != 1) {
|
||||||
set_api_error("mark name must be a single character", err);
|
set_api_error("mark name must be a single character", err);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user