comparison src/undo.c @ 14147:de75c249723d v8.1.0091

patch 8.1.0091: MS-Windows: Cannot interrupt gdb when program is running commit https://github.com/vim/vim/commit/4551c0a9fcdbdef52836d4852686d54b5e47fdaf Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 20 22:38:21 2018 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Wed, 20 Jun 2018 22:45:05 +0200
parents e76499e85744
children 487d7bda80ea
comparison
equal deleted inserted replaced
14146:63473cfe56b0 14147:de75c249723d
3537 * Like bufIsChanged() but ignoring a terminal window. 3537 * Like bufIsChanged() but ignoring a terminal window.
3538 */ 3538 */
3539 int 3539 int
3540 bufIsChangedNotTerm(buf_T *buf) 3540 bufIsChangedNotTerm(buf_T *buf)
3541 { 3541 {
3542 return !bt_dontwrite(buf) 3542 // In a "prompt" buffer we do respect 'modified', so that we can control
3543 // closing the window by setting or resetting that option.
3544 return (!bt_dontwrite(buf) || bt_prompt(buf))
3543 && (buf->b_changed || file_ff_differs(buf, TRUE)); 3545 && (buf->b_changed || file_ff_differs(buf, TRUE));
3544 } 3546 }
3545 3547
3546 int 3548 int
3547 curbufIsChanged(void) 3549 curbufIsChanged(void)