Skip to content

Commit c7c2c78

Browse files
committed
Drop \r from llm output in the vim plugin
1 parent 4856035 commit c7c2c78

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vim/mai.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
" 4) Run: send selected text as stdin, prompt as argument
5353
let l:cmd = 'mai -p ' . shellescape(l:provider) . ' -m ' . shellescape(l:model) . ' ' . shellescape(l:prompt)
5454
let l:out = systemlist(l:cmd, l:stdin)
55+
call map(l:out, 'substitute(v:val, "\\r", "", "g")')
5556

5657
echo "\n\n----\n"
5758
echo join(l:out, "\n")

0 commit comments

Comments
 (0)