kaktree
kaktree copied to clipboard
kaktree--refresh moves cursor to the first line
Problem description
The function kaktree--refresh is called after moving, creating or deleting a file. Every time kaktree--refresh is called, the cursor goes to the first line. It would be preferable for this cursor to not move in this scenario. (For instance, creating multiple file in a directory)
Steps to reproduce
- Create multiple directory
mkdir a b c dand open kakoune - Go on the
con kaktree and create a new file :Nc/test
What should happen
The cursor should still be on c
What happens instead
The cursor has moved to the first line
Environment information
Kakoune version: 2021.08.28
OS version: Fedora 34
sh executable version: fish, version 3.3.1