1
0
forked from aniani/vim

patch 8.1.0091: MS-Windows: Cannot interrupt gdb when program is running

Problem:    MS-Windows: Cannot interrupt gdb when program is running.
Solution:   Add debugbreak() and use it in the terminal debugger.
            Respect 'modified' in a prompt buffer.
This commit is contained in:
Bram Moolenaar
2018-06-20 22:38:21 +02:00
parent 9b0c5c23bd
commit 4551c0a9fc
5 changed files with 77 additions and 12 deletions

View File

@@ -3539,7 +3539,9 @@ bufIsChanged(buf_T *buf)
int
bufIsChangedNotTerm(buf_T *buf)
{
return !bt_dontwrite(buf)
// In a "prompt" buffer we do respect 'modified', so that we can control
// closing the window by setting or resetting that option.
return (!bt_dontwrite(buf) || bt_prompt(buf))
&& (buf->b_changed || file_ff_differs(buf, TRUE));
}