branch: elpa/dart-mode
commit 0c3d6d7a2f5e89bee8f23a7f9ef936ab200c91e2
Author: Natalie Weizenbaum <[email protected]>
Commit: Natalie Weizenbaum <[email protected]>
Fix an off-by-one bug in offset calculation.
---
dart-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dart-mode.el b/dart-mode.el
index f408de4..2630b8a 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -735,7 +735,7 @@ length of the text before the change is
CHANGE-BEFORE-LENGTH. See also
. ((,buffer-file-name
. ((type . "change")
(edits
- . (((offset . ,change-begin)
+ . (((offset . ,(- change-begin 1))
(length . ,change-before-length)
(replacement
. ,(buffer-substring change-begin change-end))))))))))))