diff options
author | nyamatongwe <unknown> | 2009-07-07 11:52:09 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-07 11:52:09 +0000 |
commit | a8253c4498fe0ca70458d03b86315b728988d08e (patch) | |
tree | 58a8ee44a804dd0415f9389c06bf3289509c5aae /win32/ScintillaWin.cxx | |
parent | 599253475568259ee4ad8bdc5399cf67357c663d (diff) | |
download | scintilla-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 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 6 |
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); |