[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 0e31f33 5/5: [org-translate] Fix bug in ogt-hightlight-sou

From: Eric Abrahamsen
Subject: [elpa] master 0e31f33 5/5: [org-translate] Fix bug in ogt-hightlight-source-segment
Date: Sat, 19 Sep 2020 17:21:37 -0400 (EDT)

branch: master
commit 0e31f33379aec0110cf9db3ed87d0b49f59aa45f
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    [org-translate] Fix bug in ogt-hightlight-source-segment
    packages/org-translate/org-translate.el (ogt-highlight-source-segment):
    This returned the correct position, but point actually needed to be
    after the segmentation character.
 packages/org-translate/org-translate.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/org-translate/org-translate.el 
index 1c31915..b12bc40 100644
--- a/packages/org-translate/org-translate.el
+++ b/packages/org-translate/org-translate.el
@@ -496,7 +496,8 @@ and applies a highlight to the appropriate segment of text."
          (string ogt-segmentation-character)
          nil t)
-        (1+ (point)))
+        (forward-char)
+        (point))
         (or (and (re-search-forward
                   (string ogt-segmentation-character)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]