aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-07-07 11:52:09 +0000
committernyamatongwe <unknown>2009-07-07 11:52:09 +0000
commita8253c4498fe0ca70458d03b86315b728988d08e (patch)
tree58a8ee44a804dd0415f9389c06bf3289509c5aae /gtk
parent599253475568259ee4ad8bdc5399cf67357c663d (diff)
downloadscintilla-mirror-a8253c4498fe0ca70458d03b86315b728988d08e.tar.gz
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.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/ScintillaGTK.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 801fc734a..8ec420e05 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -2495,8 +2495,7 @@ gboolean ScintillaGTK::DragMotionThis(GdkDragContext *context,
gint x, gint y, guint dragtime) {
try {
Point npt(x, y);
- SetDragPosition(SPositionFromLocation(npt, false, false,
- ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0)));
+ SetDragPosition(SPositionFromLocation(npt, false, false, UserVirtualSpace()));
GdkDragAction preferredAction = context->suggested_action;
SelectionPosition pos = SPositionFromLocation(npt);
if ((inDragDrop == ddDragging) && (PositionInSelection(pos.Position()))) {