В Linux-версии поставлен перехват исключений по Ctrl-V

This commit is contained in:
Mikhalkovich Stanislav 2022-11-22 21:21:28 +03:00
parent 88d903bbed
commit 362e1e80c5
6 changed files with 26 additions and 12 deletions

View file

@ -15,7 +15,7 @@ internal static class RevisionClass
public const string Major = "3";
public const string Minor = "8";
public const string Build = "3";
public const string Revision = "3205";
public const string Revision = "3206";
public const string MainVersion = Major + "." + Minor;
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;

View file

@ -1,4 +1,4 @@
%MINOR%=8
%REVISION%=3205
%COREVERSION%=3
%REVISION%=3206
%MINOR%=8
%MAJOR%=3

View file

@ -1 +1 @@
3.8.3.3205
3.8.3.3206

View file

@ -1 +1 @@
!define VERSION '3.8.3.3205'
!define VERSION '3.8.3.3206'

View file

@ -224,14 +224,21 @@ namespace VisualPascalABC
public void Paste(bool canInsertInInputBox)
{
if (MainForm.OutputWindow != null && MainForm.OutputWindow.InputTextBox != null &&
MainForm.OutputWindow.InputTextBox.Focused && canInsertInInputBox)
try
{
MainForm.OutputWindow.InputTextBox.Paste();
return;
if (MainForm.OutputWindow != null && MainForm.OutputWindow.InputTextBox != null &&
MainForm.OutputWindow.InputTextBox.Focused && canInsertInInputBox)
{
MainForm.OutputWindow.InputTextBox.Paste();
return;
}
ICSharpCode.TextEditor.Actions.Paste paste = new ICSharpCode.TextEditor.Actions.Paste();
paste.Execute(TextEditor.ActiveTextAreaControl.TextArea);
}
catch (Exception)
{
}
ICSharpCode.TextEditor.Actions.Paste paste = new ICSharpCode.TextEditor.Actions.Paste();
paste.Execute(TextEditor.ActiveTextAreaControl.TextArea);
}
public void SetText(string text)

View file

@ -156,7 +156,14 @@ namespace VisualPascalABC
public void ExecPaste()
{
CurrentCodeFileDocument.Paste(true);
try
{
CurrentCodeFileDocument.Paste(true);
}
catch (Exception)
{
}
}
internal void NavigationLocationChanged()