Skip to content

Commit e8564b4

Browse files
authored
Merge pull request #4459 from retailcoder/next
Fix broken .resx reference in Settings dialog / AC settings
2 parents 197bce0 + eb52bbd commit e8564b4

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Rubberduck.Core/UI/Settings/AutoCompleteSettings.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
<CheckBox Margin="15,0,15,0"
110110
IsEnabled="{Binding EnableSmartConcat}"
111111
IsChecked="{Binding ConcatVbNewLine}"
112-
Content="{Resx ResxName=Rubberduck.Resources.Settings.AutoCompletesPage, Key=ConcatVbNewline}" />
112+
Content="{Resx ResxName=Rubberduck.Resources.Settings.AutoCompletesPage, Key=ConcatVbNewLine}" />
113113

114114
<Label Margin="10"
115115
Content="{Resx ResxName=Rubberduck.Resources.Settings.AutoCompletesPage, Key=BlockCompletion}"

RubberduckTests/AutoComplete/SelfClosingPairCompletionTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ public void WhenNextPositionIsClosingChar_ClosingCharMovesSelection()
7070
Assert.AreEqual(expected, result);
7171
}
7272

73+
[Test]
74+
public void WhenNextPositionIsClosingChar_Nested_ClosingCharMovesSelection()
75+
{
76+
var pair = new SelfClosingPair('(', ')');
77+
var input = pair.ClosingChar;
78+
var original = @"foo = MsgBox(""""|)".ToCodeString();
79+
var expected = @"foo = MsgBox("""")|".ToCodeString();
80+
81+
var result = Run(pair, original, input);
82+
Assert.AreEqual(expected, result);
83+
}
84+
7385
[Test]
7486
public void DeletingOpeningCharRemovesPairedClosingChar_Parens()
7587
{

0 commit comments

Comments
 (0)