This PR addresses some issues of the plugin with folded lines - see the individual commits.
I'd also like to automatically set the cursor position when a block gets folded to be set on the visible line (and not hidden somewhere inside the fold) but right now I don't know how to correctly react to the fold events - see https://sourceforge.net/p/scintilla/bugs/2438/
@scresto09 Do the changes look OK to you and does the plugin behave correctly with them? You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/1338
-- Commit Summary --
* vimode: Take into account folded lines when moving cursor * vimode: Ensure that the line with the cursor is expanded after performing a command
-- File Changes --
M vimode/src/cmd-runner.c (1) M vimode/src/cmds/motion.c (58) M vimode/src/excmd-runner.c (2) M vimode/src/utils.c (9) M vimode/src/utils.h (1)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/1338.patch https://github.com/geany/geany-plugins/pull/1338.diff