Mercurial > vim
comparison src/ex_getln.c @ 23750:d98dcbc57f7f v8.2.2416
patch 8.2.2416: may get stuck in command line window state
Commit: https://github.com/vim/vim/commit/bed72df3e61a8908ed6324212595118f305dded0
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 27 20:34:29 2021 +0100
patch 8.2.2416: may get stuck in command line window state
Problem: May get stuck in command line window state.
Solution: Reset "cmdwin_type" when editing buffer fails. Make arglist test
pass on MS-Windows.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 27 Jan 2021 20:45:04 +0100 |
parents | 7c730cf4fb82 |
children | a91f3147d06e |
comparison
equal
deleted
inserted
replaced
23749:7ac205554b4f | 23750:d98dcbc57f7f |
---|---|
4212 if (do_ecmd(0, NULL, NULL, NULL, ECMD_ONE, ECMD_HIDE, NULL) == FAIL) | 4212 if (do_ecmd(0, NULL, NULL, NULL, ECMD_ONE, ECMD_HIDE, NULL) == FAIL) |
4213 { | 4213 { |
4214 // Some autocommand messed it up? | 4214 // Some autocommand messed it up? |
4215 win_close(curwin, TRUE); | 4215 win_close(curwin, TRUE); |
4216 ga_clear(&winsizes); | 4216 ga_clear(&winsizes); |
4217 cmdwin_type = 0; | |
4217 return Ctrl_C; | 4218 return Ctrl_C; |
4218 } | 4219 } |
4219 | 4220 |
4220 apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf); | 4221 apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf); |
4221 (void)setfname(curbuf, (char_u *)"[Command Line]", NULL, TRUE); | 4222 (void)setfname(curbuf, (char_u *)"[Command Line]", NULL, TRUE); |