diff src/ex_cmds.c @ 8556:f4dca5239317 v7.4.1568

commit https://github.com/vim/vim/commit/00f9e0dbbd3472db217d56639fad9346b9eb3b82 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 15 13:44:12 2016 +0100 patch 7.4.1568 Problem: Using CTRL-] in help on option in parentheses doesn't work. Solution: Skip the "(" in "('". (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Tue, 15 Mar 2016 13:45:06 +0100
parents b4850f705181
children f3c636c673f7
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -6114,6 +6114,11 @@ find_help_tags(
 		    || (arg[0] == '\\' && arg[1] == '{'))
 	      *d++ = '\\';
 
+	  /*
+	   * If tag starts with "('", skip the "(". Fixes CTRL-] on ('option'.
+	   */
+	  if (*arg == '(' && arg[1] == '\'')
+	      arg++;
 	  for (s = arg; *s; ++s)
 	  {
 	    /*