From f2fc738576902c82ad92893fd1174b44df50c994 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 6 Aug 2013 12:32:45 +0000 Subject: [PATCH] [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 --- PowerEditor/src/ScitillaComponent/ScintillaEditView.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.h b/PowerEditor/src/ScitillaComponent/ScintillaEditView.h index 1120a3c0c..e21898335 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.h +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.h @@ -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);