comparison src/buffer.c @ 30910:6686e742a859 v9.0.0789

patch 9.0.0789: dummy buffer ends up in a window Commit: https://github.com/vim/vim/commit/8f3c3c6cd044e3b5bf08dbfa3b3f04bb3f711bad Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 18 17:05:54 2022 +0100 patch 9.0.0789: dummy buffer ends up in a window Problem: Dummy buffer ends up in a window. Solution: Disallow navigating to a dummy buffer.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Oct 2022 18:15:03 +0200
parents 40df8a6515f6
children 35265d9d24df
comparison
equal deleted inserted replaced
30909:9196ce4981b1 30910:6686e742a859
1349 } 1349 }
1350 #ifdef FEAT_PROP_POPUP 1350 #ifdef FEAT_PROP_POPUP
1351 if ((flags & DOBUF_NOPOPUP) && bt_popup(buf) && !bt_terminal(buf)) 1351 if ((flags & DOBUF_NOPOPUP) && bt_popup(buf) && !bt_terminal(buf))
1352 return OK; 1352 return OK;
1353 #endif 1353 #endif
1354 if ((action == DOBUF_GOTO || action == DOBUF_SPLIT)
1355 && (buf->b_flags & BF_DUMMY))
1356 {
1357 // disallow navigating to the dummy buffer
1358 semsg(_(e_buffer_nr_does_not_exist), count);
1359 return FAIL;
1360 }
1354 1361
1355 #ifdef FEAT_GUI 1362 #ifdef FEAT_GUI
1356 need_mouse_correct = TRUE; 1363 need_mouse_correct = TRUE;
1357 #endif 1364 #endif
1358 1365