To: vim-dev@vim.org Subject: patch 5.4n.4 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.4n.4 Problem: When the 't' flag in 'cpoptions' is included, after a ":nohlsearch" the search highlighting would not be enabled again after a tag search. (Norbert Zeh) Solution: When setting the new search pattern in jumpto_tag(), don't restore no_hlsearch. Files: src/tag.c *** ../vim-5.4n/src/tag.c Sun Jul 4 20:35:37 1999 --- src/tag.c Mon Jul 5 21:30:36 1999 *************** *** 2463,2469 **** secure = save_secure; p_magic = save_magic; #ifdef EXTRA_SEARCH ! no_hlsearch = save_no_hlsearch; #endif /* Return OK if jumped to another file (at least we found the file!). */ --- 2463,2471 ---- secure = save_secure; p_magic = save_magic; #ifdef EXTRA_SEARCH ! /* restore no_hlsearch when keeping the old search pattern */ ! if (search_options) ! no_hlsearch = save_no_hlsearch; #endif /* Return OK if jumped to another file (at least we found the file!). */ -- ROBIN: The what? ARTHUR: The Holy Hand Grenade of Antioch. 'Tis one of the sacred relics Brother Maynard always carries with him. ALL: Yes. Of course. ARTHUR: (shouting) Bring up the Holy Hand Grenade! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /