Giter Club home page Giter Club logo

reason-libvim's People

Contributors

bryphe avatar glennsl avatar hovsater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

reason-libvim's Issues

Crash when moving cursor in Ex Command Menu

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

Cursor and selections visualized with offset on lines with swedish characters

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:

oni2_swedish_offset

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.