mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-24 17:00:32 +02:00
unposted: Make $EDITOR's jump-to-matching-brace happy.
This commit is contained in:
parent
6198f7ffba
commit
9ab9da49f7
2 changed files with 5 additions and 0 deletions
|
|
@ -1878,6 +1878,7 @@ get_comp_string(void)
|
|||
|
||||
if (!isset(IGNOREBRACES)) {
|
||||
/* Try and deal with foo{xxx etc. */
|
||||
/*}*/
|
||||
char *curs = s + (isset(COMPLETEINWORD) ? offs : (int)strlen(s));
|
||||
char *predup = dupstring(s), *dp = predup;
|
||||
char *bbeg = NULL, *bend = NULL, *dbeg = NULL;
|
||||
|
|
@ -1889,6 +1890,7 @@ get_comp_string(void)
|
|||
* we try to get braces after a parameter expansion right,
|
||||
* but this may fail sometimes. sorry.
|
||||
*/
|
||||
/*}*/
|
||||
if (*p == String || *p == Qstring) {
|
||||
if (p[1] == Inbrace || p[1] == Inpar || p[1] == Inbrack) {
|
||||
char *tp = p + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue