Skip to content

Commit

Permalink
Fix collapsed region test.
Browse files Browse the repository at this point in the history
_operations.DeleteLines should specify the number of unfolded lines.
  • Loading branch information
TKumadaki committed Dec 26, 2019
1 parent be05adf commit bf8e66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Test/VimCoreTest/CommonOperationsIntegrationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ public void DeleteLines_OverFold()
{
Create("cat", "dog", "bear", "fish", "tree");
_foldManager.CreateFold(_textView.GetLineRange(1, 2));
_commonOperations.DeleteLines(_textBuffer.GetLine(0), 3, VimUtil.MissingRegisterName);
_commonOperations.DeleteLines(_textBuffer.GetLine(0), 4, VimUtil.MissingRegisterName);
Assert.Equal(CreateLinesWithLineBreak("cat", "dog", "bear", "fish"), UnnamedRegister.StringValue);
Assert.Equal("tree", _textView.GetLine(0).GetText());
Assert.Equal(OperationKind.LineWise, UnnamedRegister.OperationKind);
Expand All @@ -984,7 +984,7 @@ public void DeleteLines_StartOfFold()
{
Create("cat", "dog", "bear", "fish", "tree");
_foldManager.CreateFold(_textView.GetLineRange(0, 1));
_commonOperations.DeleteLines(_textBuffer.GetLine(0), 2, VimUtil.MissingRegisterName);
_commonOperations.DeleteLines(_textBuffer.GetLine(0), 3, VimUtil.MissingRegisterName);
Assert.Equal(CreateLinesWithLineBreak("cat", "dog", "bear"), UnnamedRegister.StringValue);
Assert.Equal("fish", _textView.GetLine(0).GetText());
Assert.Equal(OperationKind.LineWise, UnnamedRegister.OperationKind);
Expand Down

0 comments on commit bf8e66e

Please sign in to comment.