aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJurica Bradarić <jbradaric@users.noreply.github.com>2016-09-04 03:30:36 +0200
committerJustin M. Keyes <justinkz@gmail.com>2016-09-04 03:30:36 +0200
commit5d8d24f0c238a1ac8f7bf3a1e5d74447b8be36d0 (patch)
tree4a1799b014ad8ff533fe0dfe01e2d3d1bb838d80 /src/nvim/ex_cmds.c
parenta9c5423263d876d2ff65b18b81ee3b323bf0577d (diff)
downloadrneovim-5d8d24f0c238a1ac8f7bf3a1e5d74447b8be36d0.tar.gz
rneovim-5d8d24f0c238a1ac8f7bf3a1e5d74447b8be36d0.tar.bz2
rneovim-5d8d24f0c238a1ac8f7bf3a1e5d74447b8be36d0.zip
vim-patch:7.4.1900 (#5259)
Problem: Using CTRL-] in the help on "{address}." doesn't work. Solution: Recognize an item in {}. (Hirohito Higashi, closes vim/vim#814) https://github.com/vim/vim/commit/28b942a064dd486cc241894b625ab72f5a5c6d1b
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index e70ec9ab8a..3dcd9a9116 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -4563,12 +4563,15 @@ int find_help_tags(char_u *arg, int *num_matches, char_u ***matches, int keep_la
break;
}
- /*
- * If tag starts with ', toss everything after a second '. Fixes
- * CTRL-] on 'option'. (would include the trailing '.').
- */
- if (*s == '\'' && s > arg && *arg == '\'')
+ // If tag starts with ', toss everything after a second '. Fixes
+ // CTRL-] on 'option'. (would include the trailing '.').
+ if (*s == '\'' && s > arg && *arg == '\'') {
break;
+ }
+ // Also '{' and '}'. Fixes CTRL-] on '{address}'.
+ if (*s == '}' && s > arg && *arg == '{') {
+ break;
+ }
}
*d = NUL;