From 374b31616bbfad23f980f35d79a4202afb7367e8 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 2 Apr 2008 13:02:47 +0000 Subject: 24781: enhance word-context to use next or previous word --- Doc/Zsh/contrib.yo | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index e7ce978f6..d3dc2ac1e 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -494,9 +494,10 @@ var(pattern) and a var(subcontext). The shell argument the cursor is on is matched against each var(pattern) in turn until one matches; if it does, the context is extended by a colon and the corresponding var(subcontext). Note that the test is made against the original word on the line, with no -stripping of quotes. If the cursor is at the end of the line the test is -performed against an empty string; if it is on whitespace between words the -test is made against a single space. Some examples are given below. +stripping of quotes. Special handling is done between words: the current +context is examined and if it contains the string tt(back), the word before +the cursor is considered, else the word after cursor is considered. Some +examples are given below. Here are some examples of use of the styles, actually taken from the simplified interface in tt(select-word-style): -- cgit 1.4.1