mirror of https://github.com/macssh/macssh.git
modified RSGetTextSel
This commit is contained in:
parent
bb32b20f18
commit
a06acceb16
|
@ -327,7 +327,7 @@ OSErr DragText(EventRecord *ev, Point where, short w, Boolean *dragged)
|
||||||
if (!WaitMouseMoved(ev->where)) return noErr;
|
if (!WaitMouseMoved(ev->where)) return noErr;
|
||||||
*dragged = true;
|
*dragged = true;
|
||||||
|
|
||||||
textH = RSGetTextSel(w, 0);
|
textH = RSGetTextSel(w, 0, 1);
|
||||||
|
|
||||||
if ((textH == (char **)-1L) || (textH == nil)) {
|
if ((textH == (char **)-1L) || (textH == nil)) {
|
||||||
textH = nil;
|
textH = nil;
|
||||||
|
|
|
@ -101,7 +101,7 @@ void otpgetselection(char *selection)
|
||||||
if ((i = RSfindvwind(FrontWindow())) < 0) return; // It had better be a text window...
|
if ((i = RSfindvwind(FrontWindow())) < 0) return; // It had better be a text window...
|
||||||
if (!RSTextSelected(i)) return; // ...with something selected!
|
if (!RSTextSelected(i)) return; // ...with something selected!
|
||||||
|
|
||||||
charh = RSGetTextSel(i, 0); // Get the text selection
|
charh = RSGetTextSel(i, 0, 1); // Get the text selection
|
||||||
|
|
||||||
if (charh == (char **)-1L) OutOfMemory(400);
|
if (charh == (char **)-1L) OutOfMemory(400);
|
||||||
if (charh != (char **)0L) {
|
if (charh != (char **)0L) {
|
||||||
|
|
Loading…
Reference in New Issue