From b5efe25eeeb135b5b3d78a2ced2ed3a6c0c3497e Mon Sep 17 00:00:00 2001 From: Vincent Link Date: Wed, 17 Jun 2026 13:23:58 +0200 Subject: [PATCH] fix(cli): transform single-line references for Claude format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Claude format function only handled multi-line ranges (`@file :L1-L2` → `@file#L1-2`), leaving single-line references untransformed (`@file :L197` instead of `@file#L197`). Signed-off-by: Vincent Link --- sk/cli/claude.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sk/cli/claude.lua b/sk/cli/claude.lua index 638835d9..4db06253 100644 --- a/sk/cli/claude.lua +++ b/sk/cli/claude.lua @@ -14,8 +14,9 @@ return { local ret = Text.to_string(text) - -- transform line ranges to a format that Claude understands + -- transform line references to a format that Claude understands ret = ret:gsub("@([^@]-) :L(%d+)%-L(%d+)", "@%1#L%2-%3") + ret = ret:gsub("@([^@]-) :L(%d+)", "@%1#L%2") return ret end,