Commit: runtime(termdebug): re-indent lines (#12857)

7 views
Skip to first unread message

Christian Brabandt

unread,
Aug 20, 2023, 2:15:10 PM8/20/23
to vim...@googlegroups.com
runtime(termdebug): re-indent lines (#12857)

Commit: https://github.com/vim/vim/commit/19968fc4ec2c36c7d528c7326acf43e5d663ba39
Author: Shane-XB-Qian <shane...@foxmail.com>
Date: Mon Aug 21 02:06:49 2023 +0800

runtime(termdebug): re-indent lines (https://github.com/vim/vim/issues/12857)

Signed-off-by: shane.xb.qian <shane...@foxmail.com>

diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index 2c6b98828..4a3624756 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -1485,15 +1485,15 @@ func s:HandleCursor(msg)
if lnum =~ '^[0-9]*$'
call s:GotoSourcewinOrCreateIt()
if expand('%:p') != fnamemodify(fname, ':p')
-echomsg 'different fname: "' .. expand('%:p') .. '" vs "' .. fnamemodify(fname, ':p') .. '"'
- augroup Termdebug
- " Always open a file read-only instead of showing the ATTENTION
- " prompt, since it is unlikely we want to edit the file.
- " The file may be changed but not saved, warn for that.
- au SwapExists * echohl WarningMsg
- \ | echo 'Warning: file is being edited elsewhere'
- \ | echohl None
- \ | let v:swapchoice = 'o'
+ echomsg 'different fname: "' .. expand('%:p') .. '" vs "' .. fnamemodify(fname, ':p') .. '"'
+ augroup Termdebug
+ " Always open a file read-only instead of showing the ATTENTION
+ " prompt, since it is unlikely we want to edit the file.
+ " The file may be changed but not saved, warn for that.
+ au SwapExists * echohl WarningMsg
+ \ | echo 'Warning: file is being edited elsewhere'
+ \ | echohl None
+ \ | let v:swapchoice = 'o'
augroup END
if &modified
" TODO: find existing window
Reply all
Reply to author
Forward
0 new messages