mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
[BUG_FIXED] (Author: Neomi) Fix line numbers space problem while folding.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1100 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
614070068f
commit
f2fc738576
@ -521,10 +521,11 @@ public:
|
||||
{
|
||||
int firstVisibleLineVis = (int) execute(SCI_GETFIRSTVISIBLELINE);
|
||||
int lastVisibleLineVis = linesVisible + firstVisibleLineVis + 1;
|
||||
int lastVisibleLineDoc = (int) execute(SCI_DOCLINEFROMVISIBLE, lastVisibleLineVis);
|
||||
int i = 0;
|
||||
while (lastVisibleLineVis)
|
||||
while (lastVisibleLineDoc)
|
||||
{
|
||||
lastVisibleLineVis /= 10;
|
||||
lastVisibleLineDoc /= 10;
|
||||
++i;
|
||||
}
|
||||
i = max(i, 3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user