Fixed cutting of line portion and FREQ feature.

This commit is contained in:
Alexander S. Aganichev 2000-05-07 12:53:40 +00:00
parent df48e853d9
commit d677ab9352
3 changed files with 20 additions and 7 deletions

View File

@ -9,7 +9,16 @@ ______________________________________________________________________
______________________________________________________________________
Notes for GoldED+ 1.1.4.4, March xx 2000
Notes for GoldED+ 1.1.4.5, May XX 2000
______________________________________________________________________
- Filed incorrect cutting of line portion.
- Fixed FREQ feature.
______________________________________________________________________
Notes for GoldED+ 1.1.4.4, April 25 2000
______________________________________________________________________
- Fixed sound support under DOS (GSNDAPI).

View File

@ -630,8 +630,12 @@ void IEclass::BlockDel(Line* anchor) {
// are now pointing where they should
Undo->PushItem(EDIT_UNDO_DEL_TEXT, firstcutline, firstcol);
firstcutline->txt.erase(firstcol);
firstcutline->txt += lastcutline->txt.c_str()+lastcol;
if(firstcutline != lastcutline) {
firstcutline->txt.erase(firstcol);
firstcutline->txt += lastcutline->txt.c_str()+lastcol;
}
else
firstcutline->txt.erase(firstcol, lastcol);
setlinetype(firstcutline);
firstcutline->type &= ~GLINE_BLOK;
blockcol = -1;

View File

@ -897,8 +897,8 @@ void FileRequest(GMsg* msg) {
msg->attr.frq1();
ptr = freqfile[n]+1; // 01234567890123456
ptr2 = strskip_txt(ptr);
__extension__ char tmpbuf[ptr2-ptr1+1];
strxcpy(tmpbuf, ptr1, ptr2-ptr1+1);
__extension__ char tmpbuf[ptr2-ptr+1];
strxcpy(tmpbuf, ptr, ptr2-ptr+1);
ptr2 = strskip_wht(ptr2);
if((strlen(msg->re) + strlen(tmpbuf)) < sizeof(ISub)) { // We can only fill one subject line in this version...
strcat(msg->re, tmpbuf);
@ -916,8 +916,8 @@ void FileRequest(GMsg* msg) {
msg->attr.frq1();
ptr = freqfile[crsr]+1; // 01234567890123456
ptr2 = strskip_txt(ptr);
__extension__ char tmpbuf[ptr2-ptr1+1];
strxcpy(tmpbuf, ptr1, ptr2-ptr1+1);
__extension__ char tmpbuf[ptr2-ptr+1];
strxcpy(tmpbuf, ptr, ptr2-ptr+1);
ptr2 = strskip_wht(ptr2);
if((strlen(msg->re) + strlen(tmpbuf)) < sizeof(ISub)) { // We can only fill one subject line in this version...
strcat(msg->re, tmpbuf);