summaryrefslogtreecommitdiff
path: root/usr.bin/vim/misccmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/vim/misccmds.c')
-rw-r--r--usr.bin/vim/misccmds.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/vim/misccmds.c b/usr.bin/vim/misccmds.c
index c7631498cf7..7f84db7b967 100644
--- a/usr.bin/vim/misccmds.c
+++ b/usr.bin/vim/misccmds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misccmds.c,v 1.3 1996/09/22 01:18:04 downsj Exp $ */
+/* $OpenBSD: misccmds.c,v 1.4 1996/10/14 03:55:18 downsj Exp $ */
/* vi:set ts=4 sw=4:
*
* VIM - Vi IMproved by Bram Moolenaar
@@ -3485,6 +3485,7 @@ get_c_indent()
* asdfasdf);
* here;
*/
+term_again:
l = ml_get_curline();
if (find_last_paren(l) &&
(trypos = find_match_paren(ind_maxparen,
@@ -3523,7 +3524,10 @@ get_c_indent()
if (*skipwhite(l) == '}' &&
(trypos = find_start_brace(ind_maxcomment))
!= NULL) /* XXX */
+ {
curwin->w_cursor.lnum = trypos->lnum;
+ goto term_again;
+ }
}
}
}