Commit 52dcef1
* fix: set cursor using correct coordinates
The column coordinate of the cursor is given by
vim.fn.getcurpos()[3], and not vim.fin.getcurpos()[2].
* fix: add condition to avoid E490
In some cases, executing org-subtree-up-or-down would causes E490 No
fold found error when the functional calls vim.cmd([[norm!zc]]).
This extra condition gurantees this error won't be thrown.
---------
Co-authored-by: Kristijan Husak <husakkristijan@gmail.com>
1 parent e16452b commit 52dcef1
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
816 | | - | |
817 | | - | |
| 816 | + | |
| 817 | + | |
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| |||
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | | - | |
834 | | - | |
| 833 | + | |
| 834 | + | |
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| |||
0 commit comments