onivim / reason-libvim Goto Github PK
View Code? Open in Web Editor NEWReason API for libvim
Home Page: https://v2.onivim.io
License: MIT License
Reason API for libvim
Home Page: https://v2.onivim.io
License: MIT License
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've been trying to edit text in Swedish with oni2 and noticed that sometimes the cursor was being shown incorrectly when jumping by word or even searching with /
or ?
. The reason seems to be that every swedish character adds an extra offset to the cursor position. This is also a problem in visual mode and when highlighting searches:
This offset gets returned from native code, and unfortunately I don't understand much of C code, but I ended up in e.g. normal.c
: https://github.com/onivim/libvim/blob/master/src/normal.c#L4534 (in case this helps).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.