Skip to content

Commit f98841f

Browse files
committed
stuff
1 parent d654fd1 commit f98841f

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,5 @@ ModelManifest.xml
192192
# libsshnet lib files
193193
libsshnet/lib
194194

195-
*.opendb
195+
*.opendb
196+
/SSH.VC.db

SSH.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.24720.0
4+
VisualStudioVersion = 14.0.25123.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ssh", "SSH\Ssh.csproj", "{CC7A5CAF-0A37-4205-8945-23A453CBE7C7}"
77
EndProject

Terminal/TerminalBase.cs

+4-8
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ public Point Size
169169
CursorPos = CursorPos;
170170
}
171171

172-
if (SizeChanged != null)
173-
SizeChanged(this, new SizeChangedEventArgs(oldCursorPos));
172+
SizeChanged?.Invoke(this, new SizeChangedEventArgs(oldCursorPos));
174173
}
175174
}
176175

@@ -232,8 +231,7 @@ public void ChangeToScreen(bool alternate)
232231
else
233232
currentBuffer = screenBuffer;
234233

235-
if (ScreenChanged != null)
236-
ScreenChanged(this, EventArgs.Empty);
234+
ScreenChanged?.Invoke(this, EventArgs.Empty);
237235
}
238236

239237
void advanceCursorRow()
@@ -248,8 +246,7 @@ void advanceCursorRow()
248246
Array.Copy(lines, 1, lines, 0, lines.Length - 1);
249247
lines[lines.Length - 1] = newLine;
250248

251-
if (LinesMoved != null)
252-
LinesMoved(this, new LinesMovedEventArgs(1, 0, Size.Row - 1));
249+
LinesMoved?.Invoke(this, new LinesMovedEventArgs(1, 0, Size.Row - 1));
253250
}
254251
}
255252

@@ -266,8 +263,7 @@ public void MoveLines(int index, int newIndex, int count)
266263
for (int i = 0; i < addedCount; ++i)
267264
lines[addIndex + i] = new TerminalLine();
268265

269-
if (LinesMoved != null)
270-
LinesMoved(this, new LinesMovedEventArgs(index, newIndex, count));
266+
LinesMoved?.Invoke(this, new LinesMovedEventArgs(index, newIndex, count));
271267
}
272268

273269
public void InsertCharacters(string text, TerminalFont font)

0 commit comments

Comments
 (0)