comparison src/highlight.c @ 29982:b579e1f5e7e2 v9.0.0329

patch 9.0.0329: ":highlight" hangs when 'cmdheight' is zero Commit: https://github.com/vim/vim/commit/24735f2a19c666f545330a267a32ae5df72db25c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 15:44:22 2022 +0100 patch 9.0.0329: ":highlight" hangs when 'cmdheight' is zero Problem: ":highlight" hangs when 'cmdheight' is zero. Solution: Add to msg_col when using the message window. (closes https://github.com/vim/vim/issues/11014)
author Bram Moolenaar <Bram@vim.org>
date Tue, 30 Aug 2022 16:45:03 +0200
parents 0cc9a3001717
children bb0e525e1393
comparison
equal deleted inserted replaced
29981:b40f65ab0928 29982:b579e1f5e7e2
1427 #endif 1427 #endif
1428 1428
1429 // If no argument, list current highlighting. 1429 // If no argument, list current highlighting.
1430 if (!init && ends_excmd2(line - 1, line)) 1430 if (!init && ends_excmd2(line - 1, line))
1431 { 1431 {
1432 dont_use_message_window();
1432 for (i = 1; i <= highlight_ga.ga_len && !got_int; ++i) 1433 for (i = 1; i <= highlight_ga.ga_len && !got_int; ++i)
1433 // TODO: only call when the group has attributes set 1434 // TODO: only call when the group has attributes set
1434 highlight_list_one((int)i); 1435 highlight_list_one((int)i);
1435 return; 1436 return;
1436 } 1437 }