Skip to content

Commit 7cfca45

Browse files
author
Kang Tu
committed
Use filter-buffer-substring to preserve text properties in region
1 parent de58390 commit 7cfca45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ai-code-discussion.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ region as content of that section."
359359
(interactive)
360360
(unless (region-active-p)
361361
(user-error "No region selected. Please select the text you want to save as notes"))
362-
(let* ((region-text (buffer-substring-no-properties (region-beginning) (region-end)))
362+
(let* ((region-text (filter-buffer-substring (region-beginning) (region-end) nil))
363363
(git-root (condition-case nil
364364
(magit-toplevel)
365365
(error nil)))

0 commit comments

Comments
 (0)