Skip to content

Commit 539e25f

Browse files
committed
Fix tabs (oh, the irony).
1 parent ab449e4 commit 539e25f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Connect.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void OnWindowActivated(EnvDTE.Window gotFocus, EnvDTE.Window lostFocus)
9898
if (settings.et == null)
9999
{
100100
// If the language is C++, use the default tab setting (hard tabs), otherwise,
101-
// VS seems to like soft tabs for other languages.
101+
// VS seems to like soft tabs for other languages.
102102
if (gotFocus.Document.Language == CodeModelLanguageConstants.vsCMLanguageVC)
103103
settings.et = kDefaultHardTabs;
104104
else
@@ -108,7 +108,7 @@ public void OnWindowActivated(EnvDTE.Window gotFocus, EnvDTE.Window lostFocus)
108108
if (settings.ts == null)
109109
settings.ts = kDefaultTabSize;
110110

111-
// In Vim and Visual Studio, the following settings are roughly analogous:
111+
// In Vim and Visual Studio, the following settings are roughly analogous:
112112
// ts and TabSize
113113
// sw and IndentSize
114114
// noet/et and InsertTabs
@@ -133,7 +133,7 @@ public void OnWindowActivated(EnvDTE.Window gotFocus, EnvDTE.Window lostFocus)
133133

134134
SetDTEProperty("TextEditor", gotFocus.Document.Language, "TabSize", settings.ts);
135135
SetDTEProperty("TextEditor", gotFocus.Document.Language, "IndentSize", settings.sw);
136-
SetDTEProperty("TextEditor", gotFocus.Document.Language, "InsertTabs", !settings.et);
136+
SetDTEProperty("TextEditor", gotFocus.Document.Language, "InsertTabs", !settings.et);
137137
}
138138

139139
private void ReadModelines(TextDocument td, Settings settings)
@@ -187,9 +187,9 @@ private bool DetectVimModeline(Settings settings, string line)
187187
int nchars = 0;
188188
for (int i = index + key.Length; i < line.Length; i++)
189189
{
190-
if (!Char.IsNumber(line[i]))
191-
break;
192-
nchars++;
190+
if (!Char.IsNumber(line[i]))
191+
break;
192+
nchars++;
193193
}
194194

195195
int result = 0;

0 commit comments

Comments
 (0)