summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_tricky.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9fd23ada9..52c770b00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-11-13  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* unposted: Src/Zle/zle_tricky.c: Make $EDITOR's
+	jump-to-matching-brace happy.
+
 	* 37031: Completion/Unix/Command/_git: _git-merge: Exclude
 	ancestors of HEAD from recent commit completion
 
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 4e6854928..cc4b7d673 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -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;