From 5f8518b3f04c2295be24912dba78d3e34ca74b91 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 2 Sep 2021 10:29:59 -0700 Subject: fix(defaults): "syntax sync maxlines=1" on CmdwinEnter #15552 I mistakenly suggested maxlines=&cmdwinheight, forgetting that it is calculated from topline, not cursor. maxlines=1 makes the most sense in cmdwin. ref #15401 622a36b1f1c652a8de433028bc4a03a1216db23f --- runtime/doc/vim_diff.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'runtime/doc/vim_diff.txt') diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index e50ec7d520..4b134926a2 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -90,13 +90,10 @@ Default autocommands exist in the following groups. Use ":autocmd! {group}" to remove them and ":autocmd {group}" to see how they're defined. nvim_terminal: -- BufReadCmd: New files with a name matching - `term://(.{-}//(\d+:)?)?\zs.*` are treated as terminal - buffers. |terminal-start| +- BufReadCmd: Treats "term://" buffers as |terminal| buffers. |terminal-start| nvim_cmdwin: -- CmdWinEnter: Synchronize syntax highlighting within the command - window. +- CmdwinEnter: Limits syntax sync to maxlines=1 in the |cmdwin|. ============================================================================== 3. New Features *nvim-features* -- cgit