patch 9.0.1744: Dead code in open_cmdwin()

2 views
Skip to first unread message

Christian Brabandt

unread,
Aug 19, 2023, 7:30:12 AM8/19/23
to vim...@googlegroups.com
patch 9.0.1744: Dead code in open_cmdwin()

Commit: https://github.com/vim/vim/commit/c3172fe9e4d3ea7f705b5fc02fdb0c4ceb3df8b9
Author: Sean Dewar <sean...@users.noreply.github.com>
Date: Sat Aug 19 13:23:50 2023 +0200

patch 9.0.1744: Dead code in open_cmdwin()

Problem: Dead code in open_cmdwin()
Solution: Remove it

closes: #12839

Signed-off-by: Christian Brabandt <c...@256bit.org>
Co-authored-by: Sean Dewar <sean...@users.noreply.github.com>

diff --git a/src/ex_getln.c b/src/ex_getln.c
index 55b4632ac..dff7ec9ff 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -4613,11 +4613,6 @@ open_cmdwin(void)
stuffcharReadbuff(CAR);
}
}
- else if (cmdwin_result == K_XF2) // :qa typed
- {
- ccline.cmdbuff = vim_strsave((char_u *)"qa");
- cmdwin_result = CAR;
- }
else if (cmdwin_result == Ctrl_C)
{
// :q or :close, don't execute any command
diff --git a/src/version.c b/src/version.c
index 1ee8dd33a..c41db31b6 100644
--- a/src/version.c
+++ b/src/version.c
@@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1744,
/**/
1743,
/**/
Reply all
Reply to author
Forward
0 new messages