Coder Social home page Coder Social logo

Comments (7)

coolwanglu avatar coolwanglu commented on August 15, 2024

I see, something still wrong with the resize event handler.

from neovim-e.

rygwdn avatar rygwdn commented on August 15, 2024

@coolwanglu that looks similar to something I saw while working on #13. I suspect that what's happening is:

  • window resize event triggers, and tells nvim to resize to NxM rows/cols
  • nvim resizes and triggers nv_resize
  • nv_resize calls window.resizeTo which triggers the window resize event again

This is not a problem for OS X (and I assume Linux?), but if the calculation of window size in nv_size produces a window that's too small, then it will trigger a loop that keeps reducing the rows/cols until it hits a minimum size.

#13 may fix this (I changed the conditions under which nv_resize calls window.resizeTo)

from neovim-e.

jmlucjav avatar jmlucjav commented on August 15, 2024

@rygwdn , I tried to manually apply your change locally, but get a compilation failure:

In file: src/nvim/ui.coffee
On line: 95
if not @resize_timer
^
Warning: CoffeeScript failed to compile. Use --force to continue.

So I just commented out the line with the if (first time I look at coffescript code so not much else I can do). Tested and now I don't get the previous behavior.

from neovim-e.

rygwdn avatar rygwdn commented on August 15, 2024

@jmlucjav: #13 was merged, can you try master again?

from neovim-e.

jmlucjav avatar jmlucjav commented on August 15, 2024

I just tested 2d3fc60 and the weird behaviour is gone. Also, I can resize the window, and it works.

Next issue I see:

  • if I do :e package.json the file is loaded fine and I can edit it
  • if I drag it with the mouse over the window, the file is loaded, but I loose control of the cursor, I cannot do anything more, Esc and i don't change mode and there is no cursor visible.

I have not tried loadding my _vimrc yet, will try another time.

from neovim-e.

jmlucjav avatar jmlucjav commented on August 15, 2024

should I close this and open a new issue or we can reuse this for 'all things Windows'?

from neovim-e.

coolwanglu avatar coolwanglu commented on August 15, 2024

@jmlucjav Please create a new issue for this, thanks!

from neovim-e.

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.