From 46c3c53a3c290f8757931a9f30bbf5f9577dd685 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 7 Jul 2009 11:52:09 +0000 Subject: Using the last style on a line to determine the width of a virtual space rather than use the default style. This adapts better for comments which use a different font. --- src/Editor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 687d963eb..051eb9329 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -276,6 +276,9 @@ protected: // ScintillaBase subclass needs access to much of Editor PRectangle RectangleFromRange(int start, int end); void InvalidateRange(int start, int end); + bool UserVirtualSpace() const { + return ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0); + } int CurrentPosition(); bool SelectionEmpty(); SelectionPosition SelectionStart(); -- cgit v1.2.3