diff options
Diffstat (limited to 'test/src/undo-tests.el')
-rw-r--r-- | test/src/undo-tests.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/src/undo-tests.el b/test/src/undo-tests.el index c84ed74f0b1..cb0822fb1b9 100644 --- a/test/src/undo-tests.el +++ b/test/src/undo-tests.el @@ -460,11 +460,10 @@ Demonstrates bug 25599." (delete-overlay ov)))))) (save-excursion (goto-char (point-min)) - (let ((ov (make-overlay (line-beginning-position 2) - (line-end-position 2)))) + (let ((ov (make-overlay (pos-bol 2) (pos-eol 2)))) (overlay-put ov 'insert-in-front-hooks (list overlay-modified))))) - (kill-region (point-min) (line-beginning-position 2)) + (kill-region (point-min) (pos-bol 2)) (undo-boundary) (undo))) |