branch: externals/objed
commit 213f672951bf51ad83f605ccc59683df47a6d009
Author: Clemens Radermacher <clem...@posteo.net>
Commit: Clemens Radermacher <clem...@posteo.net>

    Use prefixed word of symbol for inner ident object
---
 objed-objects.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/objed-objects.el b/objed-objects.el
index 99a4fa0..40ea5bb 100644
--- a/objed-objects.el
+++ b/objed-objects.el
@@ -2298,7 +2298,10 @@ non-nil the indentation block can contain empty lines."
     (when bounds
       (objed-make-object
        :obounds bounds
-       :ibounds (bounds-of-thing-at-point 'word))))
+       :ibounds (save-excursion
+                  ;; use the symbol prefix by default
+                  (goto-char (car bounds))
+                  (bounds-of-thing-at-point 'word)))))
 
   :try-next
   (objed--next-identifier)

Reply via email to