gk jump in man.kak does nothing #1073

Open
danr opened this Issue Dec 26, 2016 · 1 comment

Projects

None yet

2 participants

@danr
Contributor
danr commented Dec 26, 2016

Line 39 in rc/core/man.kak ends with gk:

exec '%|cat<space>${colout}<ret>gk'

But this is run in a WinResize hook, which are run in disposable contexts. Hence the gk does nothing. This makes the cursor stay at the end of the manual after a resize, and makes it very difficult to move the cursor to a good location at all after a window resize.

@mawww
Owner
mawww commented Jan 3, 2017

Yeah, this fails with WinResize, the best would probably be to fix #312 so that piping would detect actual changes to the buffer, hopefully preserving the selection at the correct position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment