Skip to content

Conversation

@edam
Copy link
Contributor

@edam edam commented Apr 29, 2019

This seems to work for me.

The logic is that when sp-forward-sexp (in sp--get-hybrid-sexp-end) returns a next sexp whose :beg is before point, it must be because there are no more and it returned the parent sexp. And so, when :beg < point, either the end of the line or the end of the parent sexp, whichever is sooner.

@edam
Copy link
Contributor Author

edam commented Apr 29, 2019

Fixes #974.

@edam
Copy link
Contributor Author

edam commented Jul 15, 2022

Tests now pass as well as they do without this patch! (i.e., diff of ert-runner is identical, with and without these changes).

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

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants