Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: preserve point before widening and re-narrowing
Some languages can narrow to a region not including point when invoking narrow-to-defun. This will cause the cursor to jump around when the restriction is restored. To prevent this, remember also the original point.
- Loading branch information