mirror of
https://github.com/neovim/neovim.git
synced 2026-05-29 16:25:35 +00:00
fixup: apply the change on more files
This commit is contained in:
committed by
Lewis Russell
parent
4b3845be2e
commit
200e7ad157
@@ -109,7 +109,7 @@ String exec_impl(uint64_t channel_id, String src, Dict(exec_opts) *opts, Error *
|
||||
// redir usually (except :echon) prepends a newline.
|
||||
if (s.data[0] == '\n') {
|
||||
memmove(s.data, s.data + 1, s.size - 1);
|
||||
s.data[s.size - 1] = '\0';
|
||||
s.data[s.size - 1] = NUL;
|
||||
s.size = s.size - 1;
|
||||
}
|
||||
return s; // Caller will free the memory.
|
||||
|
||||
Reference in New Issue
Block a user