Skip to content

Conversation

@ultronozm
Copy link
Contributor

  • overleaf.el (overleaf--after-change-function): Fix use of faulty
    assumption that text added in complex edits occurs at the beginning of
    the region reported to the before-change hooks. Simplify handling of
    complex edits.

Fixes #21.

* overleaf.el (overleaf--after-change-function): Fix use of faulty
assumption that text added in complex edits occurs at the beginning of
the region reported to the before-change hooks.  Simplify handling of
complex edits.

Fixes vale981#21.
(overleaf--queue-edit
`(:p ,(- overleaf--before-change-begin 1) :d ,old))
(overleaf--queue-edit
`(:p ,(- overleaf--before-change-begin 1) :i ,final))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wouldn't have worked before, but recently I refactored the change synchronization with overleaf so that multiple edits are batched. Good work!

@vale981 vale981 merged commit 2d6fded into vale981:main Jun 24, 2025
1 check passed
@ultronozm ultronozm deleted the fix-upcase-word-issue branch June 25, 2025 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using upcase-word between words ruins everything

2 participants