mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 13:58:18 +00:00
API: Bugfix: Check that error isn't set in buffer_get_line
This commit is contained in:
@@ -56,7 +56,7 @@ String buffer_get_line(Buffer buffer, Integer index, Error *err)
|
||||
String rv = {.size = 0};
|
||||
StringArray slice = buffer_get_slice(buffer, index, index, true, true, err);
|
||||
|
||||
if (slice.size) {
|
||||
if (!err->set && slice.size) {
|
||||
rv = slice.items[0];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user