We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32236a8 + 6e42b76 commit ba1f580Copy full SHA for ba1f580
autoload/ctrlsf/buf.vim
@@ -87,7 +87,8 @@ endf
87
" WarnIfChanged()
88
"
89
func! ctrlsf#buf#WarnIfChanged() abort
90
- if getbufvar('%', '&modified')
+ let bufnr = bufnr('__CtrlSF__')
91
+ if getbufvar(bufnr, '&modified')
92
call ctrlsf#log#Warn("Will discard ALL unsaved changes, continue? (y/N)")
93
let confirm = nr2char(getchar()) | redraw!
94
if !(confirm ==? "y")
0 commit comments