[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/crdt 7c9d7ee 64/80: avoid spitting error when POSITION-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/crdt 7c9d7ee 64/80: avoid spitting error when POSITION-HINT out of range |
Date: |
Sat, 28 Aug 2021 10:57:43 -0400 (EDT) |
branch: externals/crdt
commit 7c9d7eea70623984615f83b0609a7681aea2680b
Author: Qiantan Hong <qhong@mit.edu>
Commit: Qiantan Hong <qhong@mit.edu>
avoid spitting error when POSITION-HINT out of range
---
crdt.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crdt.el b/crdt.el
index c2d5fd5..6f35306 100644
--- a/crdt.el
+++ b/crdt.el
@@ -750,7 +750,7 @@ Start the search from POS."
(let* ((left-pos (previous-single-property-change (min (1+ pos) (point-max))
'crdt-id nil (point-min)))
(left-id (crdt--get-starting-id left-pos))
- (right-pos (next-single-property-change pos 'crdt-id nil (point-max)))
+ (right-pos (next-single-property-change (min pos (point-max))
'crdt-id nil (point-max)))
(right-id (crdt--get-starting-id right-pos))
(moving-forward nil))
(cl-macrolet ((move-forward ()
- [elpa] externals/crdt 810af7e 32/80: fix bug when beg/end are markers in crdt--*-change, (continued)
- [elpa] externals/crdt 810af7e 32/80: fix bug when beg/end are markers in crdt--*-change, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt fbcb870 31/80: more consistent name, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 58ca0a6 34/80: documents, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 06a2f1a 46/80: added some docstrings, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 2dfff42 50/80: add license, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 1a08765 51/80: slightly cleanup protocol and doc, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt efdafb9 52/80: fix bug on emacs 25, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 8457254 47/80: fix cursor movement when remote insert/delete, add URL parsing, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 817c265 49/80: fix document, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt bdada96 57/80: Disconnect user command for the server, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 7c9d7ee 64/80: avoid spitting error when POSITION-HINT out of range,
ELPA Syncer <=
- [elpa] externals/crdt dc72997 66/80: add mouse alias for RETs in menus, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 2889cae 67/80: change order of READY and OVERLAY-* during initial sync. not sure if this creates more problem, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 93af8b0 68/80: PoC visualize author, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 7875e6a 70/80: remove family for ipv6, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt b5a8a28 71/80: Don't enable buffer process related advices by default., ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 96fbbf3 73/80: Change my email to the permanent one., ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 6363427 79/80: Add indentation and debugging information to macros, ELPA Syncer, 2021/08/28