diff options
Diffstat (limited to 'src/indent.c')
-rw-r--r-- | src/indent.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c index f197027697..af23757a4a 100644 --- a/src/indent.c +++ b/src/indent.c @@ -1781,8 +1781,10 @@ ex_retab(exarg_T *eap) if (vcol >= MAXCOL) { emsg(_(e_resulting_text_too_long)); - // set got_int to break out of any loop - got_int = TRUE; + // when not inside a try/catch set got_int to break out of any + // loop + if (trylevel == 0) + got_int = TRUE; break; } if (has_mbyte) |