mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+ chg: hidden option ([Settings2] NoCopyLineOnEmptySelection) to disable VS's Ctrl+C behavior on empty selection
This commit is contained in:
parent
af7d97eb8d
commit
52a81041db
@ -19,6 +19,7 @@ SettingsVersion=4
|
||||
;MarkOccurrencesMaxCount=2000
|
||||
;MultiFileArg=0
|
||||
;NoCGIGuess=0
|
||||
;NoCopyLineOnEmptySelection=0
|
||||
;NoFadeHidden=0
|
||||
;NoFileVariables=0
|
||||
;NoHTMLGuess=0
|
||||
|
||||
@ -1 +1 @@
|
||||
2646
|
||||
2647
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<assemblyIdentity
|
||||
name="Notepad3"
|
||||
processorArchitecture="*"
|
||||
version="5.19.923.2646"
|
||||
version="5.19.923.2647"
|
||||
type="win32"
|
||||
/>
|
||||
<description>Notepad3 BETA</description>
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -498,6 +498,7 @@ typedef struct _settings2_t
|
||||
bool UseOldStyleBraceMatching;
|
||||
int CurrentLineHorizontalSlop;
|
||||
int CurrentLineVerticalSlop;
|
||||
bool NoCopyLineOnEmptySelection;
|
||||
|
||||
float AnalyzeReliableConfidenceLevel;
|
||||
//~float ReliableCEDConfidenceMapping; // = 0.85f;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user