Mercurial > vim
comparison src/autocmd.c @ 32216:6651b86aed3b v9.0.1439
patch 9.0.1439: start Insert mode when accessing a hidden prompt buffer
Commit: https://github.com/vim/vim/commit/cde8de034524d00aba4ff4142e658baff511e12d
Author: orbital <orbital@holgerines.de>
Date: Sun Apr 2 22:05:13 2023 +0100
patch 9.0.1439: start Insert mode when accessing a hidden prompt buffer
Problem: Start Insert mode when accessing a hidden prompt buffer.
Solution: Call leaving_window() in aucmd_restbuf(). (Thorben Tr?bst,
closes #12148, closes #12147)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Apr 2023 23:15:03 +0200 |
parents | f3987fde6dea |
children | e33c3437796a |
comparison
equal
deleted
inserted
replaced
32215:4b6c544c41f6 | 32216:6651b86aed3b |
---|---|
1655 goto win_found; | 1655 goto win_found; |
1656 } | 1656 } |
1657 } | 1657 } |
1658 } | 1658 } |
1659 win_found: | 1659 win_found: |
1660 | 1660 #ifdef FEAT_JOB_CHANNEL |
1661 // May need to stop Insert mode if we were in a prompt buffer. | |
1662 leaving_window(curwin); | |
1663 #endif | |
1661 // Remove the window and frame from the tree of frames. | 1664 // Remove the window and frame from the tree of frames. |
1662 (void)winframe_remove(curwin, &dummy, NULL); | 1665 (void)winframe_remove(curwin, &dummy, NULL); |
1663 win_remove(curwin, NULL); | 1666 win_remove(curwin, NULL); |
1664 | 1667 |
1665 // The window is marked as not used, but it is not freed, it can be | 1668 // The window is marked as not used, but it is not freed, it can be |