aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-07-07 11:52:09 +0000
committernyamatongwe <devnull@localhost>2009-07-07 11:52:09 +0000
commit46c3c53a3c290f8757931a9f30bbf5f9577dd685 (patch)
tree58a8ee44a804dd0415f9389c06bf3289509c5aae /win32/ScintillaWin.cxx
parent8fb47ea5ad855228fcb7ae91148e7fbbc783f8d4 (diff)
downloadscintilla-mirror-46c3c53a3c290f8757931a9f30bbf5f9577dd685.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 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index e24d32bde..76ccbeb40 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -2164,8 +2164,7 @@ STDMETHODIMP ScintillaWin::DragOver(DWORD grfKeyState, POINTL pt, PDWORD pdwEffe
// Update the cursor.
POINT rpt = {pt.x, pt.y};
::ScreenToClient(MainHWND(), &rpt);
- SetDragPosition(SPositionFromLocation(Point(rpt.x, rpt.y), false, false,
- ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0)));
+ SetDragPosition(SPositionFromLocation(Point(rpt.x, rpt.y), false, false, UserVirtualSpace()));
return S_OK;
} catch (...) {
@@ -2250,8 +2249,7 @@ STDMETHODIMP ScintillaWin::Drop(LPDATAOBJECT pIDataSource, DWORD grfKeyState,
POINT rpt = {pt.x, pt.y};
::ScreenToClient(MainHWND(), &rpt);
- SelectionPosition movePos = SPositionFromLocation(Point(rpt.x, rpt.y), false, false,
- ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0));
+ SelectionPosition movePos = SPositionFromLocation(Point(rpt.x, rpt.y), false, false, UserVirtualSpace());
DropAt(movePos, data, *pdwEffect == DROPEFFECT_MOVE, hrRectangular == S_OK);