fix GUI I/O when Return is typed in the middle of the editor (merge into 4.1.4)
svn: r13211
This commit is contained in:
parent
751dc50c24
commit
30b37f0cec
|
@ -2466,10 +2466,12 @@ static Bool RecordInput(void *m, wxEvent *event, void *data)
|
|||
media->Insert("\n");
|
||||
start = media->GetStartPosition();
|
||||
len = start - ioFrame->endpos;
|
||||
s = media->GetTextUTF8(ioFrame->endpos, start);
|
||||
ioFrame->endpos = start;
|
||||
|
||||
scheme_write_byte_string(s, len, stdin_pipe);
|
||||
if (len > 0) {
|
||||
s = media->GetTextUTF8(ioFrame->endpos, start);
|
||||
ioFrame->endpos = start;
|
||||
|
||||
scheme_write_byte_string(s, len, stdin_pipe);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user