Skip to content

Commit 4966d75

Browse files
tninjaCopilot
andauthored
Update ai-code-change.el
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2fcedff commit 4966d75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ai-code-change.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,11 @@ Argument ARG is the prefix argument."
131131
(concat initial-prompt
132132
(when region-text
133133
(concat "\nSelected region:\n"
134-
(when region-location-info
134+
(cond
135+
(region-location-info
135136
(concat region-location-info "\n"))
137+
(region-start-line
138+
(format "Start line: %d\n" region-start-line)))
136139
region-text))
137140
(when function-name (format "\nFunction: %s" function-name))
138141
files-context-string

0 commit comments

Comments
 (0)