Skip to content

Commit 4a5a8dd

Browse files
committed
patch 8.0.0461: test 45 hangs on MS-Windows
Problem: Test 45 hangs on MS-Windows. Solution: Reset 'shiftwidth'. Also remove redundent function.
1 parent d849279 commit 4a5a8dd

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/fold.c

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ static void deleteFoldMarkers(fold_T *fp, int recursive, linenr_T lnum_off);
6464
static void foldDelMarker(linenr_T lnum, char_u *marker, int markerlen);
6565
static void foldUpdateIEMS(win_T *wp, linenr_T top, linenr_T bot);
6666
static void parseMarker(win_T *wp);
67-
static void foldMoveRange_int(garray_T *gap, linenr_T line1, linenr_T line2, linenr_T dest);
6867

6968
static char *e_nofold = N_("E490: No fold found");
7069

@@ -1076,12 +1075,6 @@ foldAdjustCursor(void)
10761075
(void)hasFolding(curwin->w_cursor.lnum, &curwin->w_cursor.lnum, NULL);
10771076
}
10781077

1079-
/* foldMoveRange() {{{2 */
1080-
void
1081-
foldMoveRange(garray_T *gap, linenr_T line1, linenr_T line2, linenr_T dest)
1082-
{
1083-
foldMoveRange_int(gap, line1, line2, dest);
1084-
}
10851078
/* Internal functions for "fold_T" {{{1 */
10861079
/* cloneFoldGrowArray() {{{2 */
10871080
/*
@@ -2992,7 +2985,7 @@ foldReverseOrder(garray_T *gap, linenr_T start, linenr_T end)
29922985
}
29932986
}
29942987

2995-
/* foldMoveRange_int() {{{2 */
2988+
/* foldMoveRange() {{{2 */
29962989
/*
29972990
* Move folds within the inclusive range "line1" to "line2" to after "dest"
29982991
* requires "line1" <= "line2" <= "dest"
@@ -3036,8 +3029,8 @@ truncate_fold(fold_T *fp, linenr_T end)
30363029
#define valid_fold(fp, gap) ((fp) < ((fold_T *)(gap)->ga_data + (gap)->ga_len))
30373030
#define fold_index(fp, gap) ((size_t)(fp - ((fold_T *)(gap)->ga_data)))
30383031

3039-
static void
3040-
foldMoveRange_int(garray_T *gap, linenr_T line1, linenr_T line2, linenr_T dest)
3032+
void
3033+
foldMoveRange(garray_T *gap, linenr_T line1, linenr_T line2, linenr_T dest)
30413034
{
30423035
fold_T *fp;
30433036
linenr_T range_len = line2 - line1 + 1;
@@ -3108,7 +3101,7 @@ foldMoveRange_int(garray_T *gap, linenr_T line1, linenr_T line2, linenr_T dest)
31083101
}
31093102

31103103
/* Case 5 or 6
3111-
* changes rely on whether there are folds between the end of
3104+
* changes rely on whether there are folds between the end of
31123105
* this fold and "dest".
31133106
*/
31143107
move_start = fold_index(fp, gap);

src/testdir/test45.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ kYpj:call append("$", foldlevel("."))
2727
/^2 b
2828
i jI :call append("$", "indent " . foldlevel("."))
2929
k:call append("$", foldlevel("."))
30+
:set sw&
3031
:" test syntax folding
3132
:set fdm=syntax fdl=0
3233
:syn region Hup start="dd" end="ii" fold contains=Fd1,Fd2,Fd3

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
461,
767769
/**/
768770
460,
769771
/**/

0 commit comments

Comments
 (0)