mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
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.
4551c0a9fc
This commit is contained in:
@@ -2971,7 +2971,10 @@ static char_u *u_save_line(linenr_T lnum)
|
||||
bool bufIsChanged(buf_T *buf)
|
||||
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
{
|
||||
return !bt_dontwrite(buf) && (buf->b_changed || file_ff_differs(buf, true));
|
||||
// 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));
|
||||
}
|
||||
|
||||
// Return true if any buffer has changes. Also buffers that are not written.
|
||||
|
Reference in New Issue
Block a user