summaryrefslogtreecommitdiff
path: root/usr.bin/vim/misccmds.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-10-14 03:56:09 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-10-14 03:56:09 +0000
commit0a64da4f22aa6e7dc9ce23604386381860186ad4 (patch)
tree532d8d1430151973edf5c77219a3c0c08afbd3d4 /usr.bin/vim/misccmds.c
parent6ddf388c16e872b21b49b92394473229e943f96e (diff)
Backout a previous change that didn't work, and update to version 4.5.
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;
+ }
}
}
}