forked from DistributedProofreaders/guiguts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `ReplaceSelectionsWith` function handles keeping page marks in approximately the same location when a Search/Replace operation spans a page boundary (by maintaining the relative proportion of text each side of the page boundary). This did not cope correctly when there were two or more page marks at the same location (i.e. blank pages). The page marks could get reversed, so that 015 came before 014, for example (although still both at the same location). Avoiding changing the mark gravity (whether the mark goes left or right of text inserted at the mark) fixes this for marks within the S/R region. Temporarily setting "right" gravity for page marks that immediately follow the S/R region keeps those page marks correct.
- Loading branch information
1 parent
4de77c1
commit 4a1a33a
Showing
1 changed file
with
24 additions
and
21 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