forked from tsdh/iedit
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update occurrences in `post-command-hook'
Before the occurrences are updated in `modification-hooks' directly. Some commands adjust the current point after `modification-hooks' based on the saved position, e.g. yank, replace-match. Then the point might end up to a wrong place. In this commit, a hook is added into `post-command-hook' when iedit-mode is acitve. The change in `modification-hooks' are collected into a `iedit-after-change-list'. In the hook, the list are accumlated into one change and then applied to all the other occurrences.
- Loading branch information
Showing
4 changed files
with
105 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters