Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(neo)vim multiline strings are broken on v0.2022.03.14.08.49.stable_00 #813

Open
hjr3 opened this issue Mar 16, 2022 · 2 comments
Open

(neo)vim multiline strings are broken on v0.2022.03.14.08.49.stable_00 #813

hjr3 opened this issue Mar 16, 2022 · 2 comments
Labels
Bugs Bugs, Hangs, Crash, and Freezes

Comments

@hjr3
Copy link

hjr3 commented Mar 16, 2022

Describe the bug

When using a multiline string in vim, the cursor does is off, the window itself looks wrong and the line numbers skip.

To Reproduce

Steps to reproduce:

  1. Copy this example json string:
{ "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "GlossList": { "GlossEntry": { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": { "para": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": ["GML", "XML"] }, "GlossSee": "markup" } } } } }
  1. Open neovim
  2. Press $ to go to end of string
  3. Notice cursor is way past the end of the string

Expected behaviour

No response

Screenshots

Here is a video of what I see:

Screen.Recording.2022-03-16.at.3.22.26.PM.mov

Operating System

MacOS

OS Version

12.0.1

Additional context

neovim:

NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.6.1/share/nvim"

Run :checkhealth for more info
@KineticCookie
Copy link

Encountered the same behaviour using nvim.
At the end of lines there is some kind of artefacts:
image

And lines themselves bleed into section with line numbers:
image

After a bit of research I found that :set number breaks multiline strings on nvim.
But vanilla vim works perfectly!

warp v0.2022.06.20.09.15.stable_02

nvim --version
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.6.1/share/nvim"

Run :checkhealth for more info
vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 19 2022 21:41:43)
macOS version - x86_64
Included patches: 1-4113
Compiled by [email protected]

@elviskahoro
Copy link

Thanks for opening this especially with a video and clear repro instructions. Will circle back once it's a WIP

@warpdotdev-devx warpdotdev-devx bot added the Bugs Bugs, Hangs, Crash, and Freezes label Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes
Projects
None yet
Development

No branches or pull requests

3 participants