]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(termdebug): re-indent lines (#12857)
authorShane-XB-Qian <shane.qian@foxmail.com>
Sun, 20 Aug 2023 18:06:49 +0000 (02:06 +0800)
committerGitHub <noreply@github.com>
Sun, 20 Aug 2023 18:06:49 +0000 (20:06 +0200)
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

index 2c6b98828f0bc52ca007e7ec56928eaff35dad37..4a3624756a98ec6a7316b06496ca9ba8b4d018a7 100644 (file)
@@ -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