mirror of
https://github.com/microsoft/terminal.git
synced 2026-09-25 08:24:54 +00:00
Fix the crashing Selection test
This commit is contained in:
@@ -12,8 +12,6 @@
|
||||
using namespace Microsoft::Console::Interactivity;
|
||||
using namespace Microsoft::Console::Types;
|
||||
|
||||
std::unique_ptr<Selection> Selection::_instance;
|
||||
|
||||
Selection::Selection() :
|
||||
_fSelectionVisible(false),
|
||||
_ulSavedCursorSize(0),
|
||||
@@ -32,10 +30,7 @@ Selection::Selection() :
|
||||
|
||||
Selection& Selection::Instance()
|
||||
{
|
||||
if (!_instance)
|
||||
{
|
||||
_instance.reset(new Selection());
|
||||
}
|
||||
static std::unique_ptr<Selection> _instance{ new Selection() };
|
||||
return *_instance;
|
||||
}
|
||||
|
||||
|
||||
@@ -84,8 +84,6 @@ private:
|
||||
void _CancelMarkSelection();
|
||||
void _CancelMouseSelection();
|
||||
|
||||
static std::unique_ptr<Selection> _instance;
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------
|
||||
// input handling (selectionInput.cpp)
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user