Backport fix from Scintilla CVS to fix using SCI_GETSELECTIONSTART
and SCI_GETSELECTIONEND with rectangular selections. This fixes replacing in a rectangular selection. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4806 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
94577bb251
commit
c14fc12dd0
@ -1,3 +1,11 @@
|
||||
2010-04-07 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* scintilla/Editor.cxx:
|
||||
Backport fix from Scintilla CVS to fix using SCI_GETSELECTIONSTART
|
||||
and SCI_GETSELECTIONEND with rectangular selections. This fixes
|
||||
replacing in a rectangular selection.
|
||||
|
||||
|
||||
2010-04-06 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/filetypes.c:
|
||||
|
@ -6861,14 +6861,14 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
|
||||
break;
|
||||
|
||||
case SCI_GETSELECTIONSTART:
|
||||
return Platform::Minimum(sel.MainAnchor(), sel.MainCaret());
|
||||
return sel.LimitsForRectangularElseMain().start.Position();
|
||||
|
||||
case SCI_SETSELECTIONEND:
|
||||
SetSelection(wParam, Platform::Minimum(sel.MainAnchor(), wParam));
|
||||
break;
|
||||
|
||||
case SCI_GETSELECTIONEND:
|
||||
return Platform::Maximum(sel.MainAnchor(), sel.MainCaret());
|
||||
return sel.LimitsForRectangularElseMain().end.Position();
|
||||
|
||||
case SCI_SETPRINTMAGNIFICATION:
|
||||
printMagnification = wParam;
|
||||
|
Loading…
x
Reference in New Issue
Block a user