mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-20 21:13:25 +08:00
Merge pull request #5143 from RaiKoHoff/Dev_Master
Change line selection on margin click from sub-line to whole-line
This commit is contained in:
commit
453d10838c
@ -39,6 +39,7 @@ SettingsVersion=5
|
||||
;ShellAppUserModelID=Rizonesoft.Notepad3
|
||||
;ShellUseSystemMRU=1
|
||||
;StickyWindowPosition=0
|
||||
;SubWrappedLineSelectOnMarginClick=false
|
||||
;LaunchInstanceWndPosOffset=28
|
||||
;LaunchInstanceFullVisible=true
|
||||
;UseOldStyleBraceMatching=0
|
||||
|
||||
@ -1335,6 +1335,8 @@ void LoadSettings()
|
||||
|
||||
Settings2.NoCutLineOnEmptySelection = IniSectionGetBool(IniSecSettings2, L"NoCutLineOnEmptySelection", false);
|
||||
|
||||
Settings2.SubWrappedLineSelectOnMarginClick = IniSectionGetBool(IniSecSettings2, L"SubWrappedLineSelectOnMarginClick", false);
|
||||
|
||||
Settings2.AnalyzeReliableConfidenceLevel = (float)clampi(IniSectionGetInt(IniSecSettings2, L"AnalyzeReliableConfidenceLevel", 90), 0, 100) / 100.0f;
|
||||
|
||||
int const iAnsiCPBonusSet = clampi(IniSectionGetInt(IniSecSettings2, L"LocaleAnsiCodePageAnalysisBonus", 33), 0, 100);
|
||||
|
||||
@ -2644,7 +2644,7 @@ static void _InitializeSciEditCtrl(HWND hwndEditCtrl)
|
||||
SciCall_SetEdgeColumn(Settings.LongLinesLimit);
|
||||
|
||||
// general margin
|
||||
SciCall_SetMarginOptions(SC_MARGINOPTION_SUBLINESELECT);
|
||||
SciCall_SetMarginOptions(Settings2.SubWrappedLineSelectOnMarginClick ? SC_MARGINOPTION_SUBLINESELECT : SC_MARGINOPTION_NONE);
|
||||
|
||||
// Nonprinting characters
|
||||
SciCall_SetViewWS(Settings.ViewWhiteSpace ? SCWS_VISIBLEALWAYS : SCWS_INVISIBLE);
|
||||
|
||||
@ -764,6 +764,7 @@ typedef struct SETTINGS2_T {
|
||||
int CurrentLineVerticalSlop;
|
||||
bool NoCopyLineOnEmptySelection;
|
||||
bool NoCutLineOnEmptySelection;
|
||||
bool SubWrappedLineSelectOnMarginClick;
|
||||
bool LexerSQLNumberSignAsComment;
|
||||
int ExitOnESCSkipLevel;
|
||||
int ZoomTooltipTimeout;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user