mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
runtime(termdebug): re-indent lines (#12857)
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
This commit is contained in:
parent
f5d0f54790
commit
19968fc4ec
@ -1485,15 +1485,15 @@ func s:HandleCursor(msg)
|
|||||||
if lnum =~ '^[0-9]*$'
|
if lnum =~ '^[0-9]*$'
|
||||||
call s:GotoSourcewinOrCreateIt()
|
call s:GotoSourcewinOrCreateIt()
|
||||||
if expand('%:p') != fnamemodify(fname, ':p')
|
if expand('%:p') != fnamemodify(fname, ':p')
|
||||||
echomsg 'different fname: "' .. expand('%:p') .. '" vs "' .. fnamemodify(fname, ':p') .. '"'
|
echomsg 'different fname: "' .. expand('%:p') .. '" vs "' .. fnamemodify(fname, ':p') .. '"'
|
||||||
augroup Termdebug
|
augroup Termdebug
|
||||||
" Always open a file read-only instead of showing the ATTENTION
|
" Always open a file read-only instead of showing the ATTENTION
|
||||||
" prompt, since it is unlikely we want to edit the file.
|
" prompt, since it is unlikely we want to edit the file.
|
||||||
" The file may be changed but not saved, warn for that.
|
" The file may be changed but not saved, warn for that.
|
||||||
au SwapExists * echohl WarningMsg
|
au SwapExists * echohl WarningMsg
|
||||||
\ | echo 'Warning: file is being edited elsewhere'
|
\ | echo 'Warning: file is being edited elsewhere'
|
||||||
\ | echohl None
|
\ | echohl None
|
||||||
\ | let v:swapchoice = 'o'
|
\ | let v:swapchoice = 'o'
|
||||||
augroup END
|
augroup END
|
||||||
if &modified
|
if &modified
|
||||||
" TODO: find existing window
|
" TODO: find existing window
|
||||||
|
Loading…
x
Reference in New Issue
Block a user