mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
Merge pull request #1824 from RaiKoHoff/DevNewFeatures
Don't auto-close blank untitled document
This commit is contained in:
commit
1e14dcd4e6
@ -1 +1 @@
|
||||
2690
|
||||
2691
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<assemblyIdentity
|
||||
name="Notepad3"
|
||||
processorArchitecture="*"
|
||||
version="5.19.1128.2690"
|
||||
version="5.19.1128.2691"
|
||||
type="win32"
|
||||
/>
|
||||
<description>Notepad3 BETA</description>
|
||||
|
||||
@ -10027,6 +10027,7 @@ bool FileSave(bool bSaveAlways, bool bAsk, bool bSaveAs, bool bSaveCopy, bool bP
|
||||
fioStatus.iEncoding = Encoding_Current(CPI_GET);
|
||||
fioStatus.iEOLMode = SciCall_GetEOLMode();
|
||||
|
||||
#if 0
|
||||
bool bIsEmptyNewFile = false;
|
||||
if (StrIsEmpty(Globals.CurrentFile)) {
|
||||
DocPos const cchText = SciCall_GetTextLength();
|
||||
@ -10042,6 +10043,10 @@ bool FileSave(bool bSaveAlways, bool bAsk, bool bSaveAs, bool bSaveCopy, bool bP
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
bool const bIsEmptyNewFile = (StrIsEmpty(Globals.CurrentFile) && (SciCall_GetTextLength() <= 0LL));
|
||||
#endif
|
||||
|
||||
|
||||
if (!bSaveAlways && (!IsSaveNeeded(ISN_GET) || bIsEmptyNewFile) && !bSaveAs) {
|
||||
int idx;
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 19
|
||||
#define VERSION_REV 1128
|
||||
#define VERSION_BUILD 2690
|
||||
#define VERSION_BUILD 2691
|
||||
#define SCINTILLA_VER 421
|
||||
#define ONIGURUMA_REGEX_VER 6.9.4
|
||||
#define UCHARDET_VER 2018.09.27
|
||||
|
||||
Loading…
Reference in New Issue
Block a user