branch: externals/objed
commit 333b58c6f0ed1a912566a3d040a5497f0c5ef6d4
Author: Clemens Radermacher <[email protected]>
Commit: Clemens Radermacher <[email protected]>
Change indentation object to include leading ws
---
objed-objects.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/objed-objects.el b/objed-objects.el
index 888aabf..756501b 100644
--- a/objed-objects.el
+++ b/objed-objects.el
@@ -1806,7 +1806,10 @@ non-nil the indentation block can contain empty lines."
(goto-char opos))
(line-end-position))))
(when (and beg end)
- (cons beg end))))
+ (save-excursion
+ (goto-char beg)
+ (cons (line-beginning-position)
+ end)))))
(objed-define-object nil indent