Giter Club home page Giter Club logo

Comments (4)

dbarnett avatar dbarnett commented on September 1, 2024

It needs to be something --remote-send can accept. At least <Nul> should work, but looks like it doesn't, either:

  % ab<Nul>cd
  ab^@cd
FAILED on line 1: Suspected error message:
E29: No inserted text yet

Message was "E29: No inserted text yet"

Failed command on line 1:
% ab<Nul>cd

Last few commands (most recent last) were:
iab<Nul>cd<ESC>

The exception and behavior you're seeing are a little surprising, too. There's probably some overall bugginess with special characters. Not sure if we actually want to support literal NUL characters, but if not we could at least improve the error message to say Unsupported character "^@". Use "<Nul>" instead..

from vroom.

equalsraf avatar equalsraf commented on September 1, 2024

Quick check for Neovim's replace_termcodes is turning 'ab\x0cd' into 'ab' not sure why. It is quite possible it is not ready to take a Null byte.

As for the and cases it is likely they are affected by #36(neovim/neovim#1270)

from vroom.

splinterofchaos avatar splinterofchaos commented on September 1, 2024

Quick check for Neovim's replace_termcodes is turning 'ab\x0cd' into 'ab' not sure why.

Because replace_termcodes() doesn't take a len parameter (needs to return one, too) and relies on strlen(). Same for ins_typebuf(). The String object we pass to it does have a len member, so it should be trivial to fix. Would it be too non-topical to add that change to neovim/neovim#1270?

from vroom.

splinterofchaos avatar splinterofchaos commented on September 1, 2024

Quick check for Neovim's replace_termcodes is turning 'ab\x0cd' into 'ab' not sure why.

Actually, it's working for the lua tests (neovim/neovim#1296 (comment)), but it converts NULs to newlines within the line. We just need to modify the API (buffer_get_*) to convert them back.

from vroom.

Related Issues (20)

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.