+ chg: hidden option ([Settings2] NoCopyLineOnEmptySelection) to disable VS's Ctrl+C behavior on empty selection

This commit is contained in:
Rainer Kottenhoff 2019-09-23 17:48:57 +02:00
parent af7d97eb8d
commit 52a81041db
7 changed files with 10 additions and 4 deletions

View File

@ -19,6 +19,7 @@ SettingsVersion=4
;MarkOccurrencesMaxCount=2000
;MultiFileArg=0
;NoCGIGuess=0
;NoCopyLineOnEmptySelection=0
;NoFadeHidden=0
;NoFileVariables=0
;NoHTMLGuess=0

View File

@ -1 +1 @@
2646
2647

View File

@ -3,7 +3,7 @@
<assemblyIdentity
name="Notepad3"
processorArchitecture="*"
version="5.19.923.2646"
version="5.19.923.2647"
type="win32"
/>
<description>Notepad3 BETA</description>

View File

@ -696,6 +696,9 @@ void LoadSettings()
Defaults2.CurrentLineVerticalSlop = 5;
Settings2.CurrentLineVerticalSlop = clampi(IniSectionGetInt(Settings2_Section, L"CurrentLineVerticalSlop", Defaults2.CurrentLineVerticalSlop), 0, 25);
Defaults2.NoCopyLineOnEmptySelection = false;
Settings2.NoCopyLineOnEmptySelection = IniSectionGetBool(Settings2_Section, L"NoCopyLineOnEmptySelection", Defaults2.NoCopyLineOnEmptySelection);
int const iARCLdef = 50;
Defaults2.AnalyzeReliableConfidenceLevel = (float)iARCLdef / 100.0f;

View File

@ -4004,7 +4004,8 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
}
//~_BEGIN_UNDO_ACTION_
if (SciCall_IsSelectionEmpty()) {
if (!HandleHotSpotURLClicked(SciCall_GetCurrentPos(), COPY_HYPERLINK))
if (!HandleHotSpotURLClicked(SciCall_GetCurrentPos(), COPY_HYPERLINK) &&
!Settings2.NoCopyLineOnEmptySelection)
{
// VisualStudio behavior
SciCall_CopyAllowLine();

View File

@ -498,6 +498,7 @@ typedef struct _settings2_t
bool UseOldStyleBraceMatching;
int CurrentLineHorizontalSlop;
int CurrentLineVerticalSlop;
bool NoCopyLineOnEmptySelection;
float AnalyzeReliableConfidenceLevel;
//~float ReliableCEDConfidenceMapping; // = 0.85f;

View File

@ -8,7 +8,7 @@
#define VERSION_MAJOR 5
#define VERSION_MINOR 19
#define VERSION_REV 923
#define VERSION_BUILD 2646
#define VERSION_BUILD 2647
#define SCINTILLA_VER 420
#define ONIGURUMA_REGEX_VER 6.9.3
#define UCHARDET_VER 2018.09.27