comparison 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
comparison
equal deleted inserted replaced
8555:b7b50df7b7a1 8556:f4dca5239317
6112 if ((arg[0] == '[' && (arg[1] == ':' 6112 if ((arg[0] == '[' && (arg[1] == ':'
6113 || (arg[1] == '+' && arg[2] == '+'))) 6113 || (arg[1] == '+' && arg[2] == '+')))
6114 || (arg[0] == '\\' && arg[1] == '{')) 6114 || (arg[0] == '\\' && arg[1] == '{'))
6115 *d++ = '\\'; 6115 *d++ = '\\';
6116 6116
6117 /*
6118 * If tag starts with "('", skip the "(". Fixes CTRL-] on ('option'.
6119 */
6120 if (*arg == '(' && arg[1] == '\'')
6121 arg++;
6117 for (s = arg; *s; ++s) 6122 for (s = arg; *s; ++s)
6118 { 6123 {
6119 /* 6124 /*
6120 * Replace "|" with "bar" and '"' with "quote" to match the name of 6125 * Replace "|" with "bar" and '"' with "quote" to match the name of
6121 * the tags for these commands. 6126 * the tags for these commands.