Skip to content

Conversation

@lambdalisue
Copy link
Owner

@lambdalisue lambdalisue commented Aug 3, 2020

Close #136

Kapture 2020-08-03 at 22 40 13

Note that fern does NOT re-apply -reveal on the existing buffer but fern restore the previous cursor position.
The above behavior had broken in Vim if users did not move cursor thus this PR correct the behavior in Vim.

  1. :e README.md
  2. :Fern . -drawer -toggle -reveal=% - The cursor is on README.md
  3. :q
  4. :Fern . -drawer -toggle -reveal=% - The cursor is on README.md again
  5. Move cursor on doc and expand - The cursor is on fern-develop.txt
  6. :q
  7. :Fern . -drawer -toggle -reveal=% - The cursor is on fern-develop.txt rather than README.md even -reveal points README.md

@lambdalisue lambdalisue merged commit 05d5ed8 into master Aug 3, 2020
@lambdalisue lambdalisue deleted the hotfix-cursor branch August 3, 2020 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When toggling the draw with reveal, subsequent reveals of the same file name do not get revealed

2 participants