mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-23 21:01:01 +08:00
+chg: limit width of left dead margin text area to max base font width (char width)
This commit is contained in:
parent
6b213d999b
commit
188cbf6a70
@ -4108,8 +4108,8 @@ void Style_SetStyles(HWND hwnd, const int iStyle, LPCWSTR lpszStyle, const float
|
||||
else {
|
||||
float fWidth = 1.0;
|
||||
Style_StrGetSizeFloatEx(lpszStyle, &fWidth);
|
||||
int const width = clampi(f2int(fWidth), 0, 256);
|
||||
SciCall_SetMarginLeft(width);
|
||||
int const width = clampi(f2int(fWidth), 0, f2int(fBaseFontSize));
|
||||
SciCall_SetMarginLeft(width); // dead margin
|
||||
}
|
||||
|
||||
char localeNameA[LOCALE_NAME_MAX_LENGTH] = "en-us\0";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user