kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.16k stars 37 forks source link

Cursor resets position to beginning of the line when navigating over the fold #194

Closed Rizhiy closed 5 months ago

Rizhiy commented 5 months ago

Neovim version (nvim -v | head -n1)

NVIM v0.9.4

Operating system/version

Ubuntu 22.04

How to reproduce the issue

  1. Install ufo
  2. Fold a piece of code
  3. Move cursor to middle of line above the fold
  4. Move cursor down through folded code

Expected behavior

The cursor column should stay at whatever it was above the fold.

Actual behavior

Cursor column resets to 0 when navigating over the fold and stays there even when we leave the fold.