changeset 32924:1eff503fd3ca

runtime(termdebug): re-indent lines (#12857) Commit: https://github.com/vim/vim/commit/19968fc4ec2c36c7d528c7326acf43e5d663ba39 Author: Shane-XB-Qian <shane.qian@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.qian@foxmail.com>
author Christian Brabandt <cb@256bit.org>
date Sun, 20 Aug 2023 20:15:05 +0200
parents 3723f59e9d76
children 5d17e74a756d
files runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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