Coder Social home page Coder Social logo

Column value outside range about glance.nvim HOT 5 CLOSED

lvim-tech avatar lvim-tech commented on September 21, 2024
Column value outside range

from glance.nvim.

Comments (5)

DNLHC avatar DNLHC commented on September 21, 2024 1

@lvim-tech I see what you mean. I'll look into it, thanks.

from glance.nvim.

DNLHC avatar DNLHC commented on September 21, 2024

Thank you, should be fixed now.

from glance.nvim.

lvim-tech avatar lvim-tech commented on September 21, 2024

Hi, @DNLHC. Maybe line 239 iv preview.lua vim.cmd('norm! zz zv') must be vim.cmd('norm! zz')
Then check if is folded and run command vim.cmd('norm! zv')

This prevents the cursor from being positioned on the second one character.

from glance.nvim.

DNLHC avatar DNLHC commented on September 21, 2024

From my understanding the problem occurred when nvim_win_set_cursor failed to set cursor on column -1
Folds shouldn't be the problem, from your logs it shows the error happened before that point.
Could you confirm the problem is fixed?

from glance.nvim.

lvim-tech avatar lvim-tech commented on September 21, 2024

Error in preview.lua:234 - fixed.
But with zz zv the cursor is positioned at second character

1_a
1_b
1_c

With zz the cursor is positioned at first character

2_a
2_b
2_c

from glance.nvim.

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.