Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Yaron10 opened this issue Mar 3, 2023 · 0 comments
Closed

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

Yaron10 opened this issue Mar 3, 2023 · 0 comments
Assignees
Labels

Comments

@Yaron10
Copy link

Yaron10 commented Mar 3, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants