Compare commits

...

5 Commits

2 changed files with 6 additions and 5 deletions

View File

@ -31,6 +31,6 @@ using Lers.Plugins;
// Т.к. мы можем забыть это сделать, то лучше чтобы версия увеличивалась сама. Звездочку можно задать только для версии сборки,
// для версии файла она не работает. Но если не указать версию файла, то она будет равна версии сборки.
[assembly: AssemblyVersion("3.29.47")]
[assembly: AssemblyVersion("3.32.47")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -337,10 +337,11 @@ namespace Vkt5_RemoteConsole
string showLine = this.displayLine;
if (this.displayCursor)
if (showLine.Length > 0 && cursorPos < showLine.Length && this.displayCursor)
{
showLine = showLine.Remove(this.cursorPos, 1);
showLine = showLine.Insert(this.cursorPos, cursorChar);
showLine = showLine
.Remove(this.cursorPos, 1)
.Insert(this.cursorPos, cursorChar);
}
this.txtLine1.Text = showLine.Substring(0, 16);
@ -379,4 +380,4 @@ namespace Vkt5_RemoteConsole
private bool isMenuBtnDown = false;
private DateTime menuBtnPressTime = DateTime.MinValue;
}
}
}