I made a test to reproduce the error described in onivim/oni2#1554
describe("CommandLineError", ({test, _}) =>
test("simple command line", ({expect}) => {
let _ = reset();
input(":");
expect.int(CommandLine.getPosition()).toBe(0);
input("e");
expect.int(CommandLine.getPosition()).toBe(1);
input(" ");
expect.int(CommandLine.getPosition()).toBe(2);
input("<Left>");
expect.int(CommandLine.getPosition()).toBe(1);
expect.int(Array.length(CommandLine.getCompletions())).toBe(20);
})
);
The output got from previous test is the following
SUMMARY: AddressSanitizer: negative-size-param /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cc:476 in __interceptor_strncpy
I will try to submit a PR if I manage to solve
I made a test to reproduce the error described in onivim/oni2#1554
The output got from previous test is the following
I will try to submit a PR if I manage to solve