Skip to content

Possible wrong value in "Custom Large File Size" #13280

@Yaron10

Description

@Yaron10

STR:
Preferences -> Performance.
Set "Define Large File Size" to 3000.
Exit NPP.
Restart NPP.
Preferences -> Performance.

Result:
"Custom Large File Size" is 4096.

Exit NPP.
Restart NPP.
Preferences -> Performance.

Result:
"Custom Large File Size" is 200.

Suggestion:
Replace

if (fileSizeLimit4StylingMB > 0 && fileSizeLimit4StylingMB < 4096)

with

if (fileSizeLimit4StylingMB > 0 && fileSizeLimit4StylingMB <= 4096)
	_nppGUI._largeFileRestriction._largeFileSizeDefInByte = (static_cast<int64_t>(fileSizeLimit4StylingMB) * 1024) * 1024;

Notepad++ v8.4.9 (64-bit)
Build time : Feb 25 2023 - 18:00:24
Path : C---\Notepad++.x64.Release.exe
Command Line :
Admin mode : ON
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 20H2
OS Build : 19042.985
Current ANSI codepage : 1255
Plugins :
ComparePlus (1.1)
HTMLTag (1.3.6)
MenuIcons (2.0.2)
PythonScript (2)
_CustomizeToolbar (4.2)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions