Some more patches from Sir Raorn
This commit is contained in:
parent
2fa38e497b
commit
b6e2ea1384
@ -1780,7 +1780,8 @@ void IEclass::Reflow() {
|
||||
const char* _qlenptr = currline->txt.c_str() + _qlen1;
|
||||
|
||||
// Strip leading spaces from the first line
|
||||
const char* ptr = strskip_wht(_qlenptr);
|
||||
const char* ptr = _qlenptr;
|
||||
while(*ptr and isspace(*ptr) and *ptr != '\n') ptr++;
|
||||
if(ptr != _qlenptr) {
|
||||
Undo->PushItem(EDIT_UNDO_DEL_TEXT, currline, _qlen1, ptr-_qlenptr);
|
||||
currline->txt.erase(_qlen1, ptr-_qlenptr);
|
||||
|
@ -858,6 +858,8 @@ inline char uuencode_enc(int c) { return (char)(c ? (c & 077) + ' ': '`'); }
|
||||
|
||||
void IEclass::editimport(Line* __line, char* __filename, bool imptxt) {
|
||||
|
||||
XlatName __oldxlatimport;
|
||||
|
||||
GFTRK("Editimport");
|
||||
|
||||
// Save the unfinished msg first of all
|
||||
@ -874,6 +876,9 @@ void IEclass::editimport(Line* __line, char* __filename, bool imptxt) {
|
||||
AA->SetInputfile("*");
|
||||
}
|
||||
|
||||
strcpy(__oldxlatimport, AA->Xlatimport());
|
||||
AA->SetXlatimport(CFG->xlatlocalset);
|
||||
|
||||
strcpy(CFG->inputfile, AA->Inputfile());
|
||||
|
||||
int ImportMode;
|
||||
@ -1157,6 +1162,8 @@ void IEclass::editimport(Line* __line, char* __filename, bool imptxt) {
|
||||
}
|
||||
}
|
||||
|
||||
AA->SetXlatimport(__oldxlatimport);
|
||||
|
||||
GFTRK(NULL);
|
||||
}
|
||||
|
||||
|
@ -1784,8 +1784,6 @@ static int cmp_quotes(char* q1, char* q2) {
|
||||
do {
|
||||
q1 = spanspaces(++q1);
|
||||
q2 = spanspaces(++q2);
|
||||
if(*q2 == 0)
|
||||
return YES;
|
||||
if(*q1 != *q2)
|
||||
return NO;
|
||||
} while(*q1 and *q2);
|
||||
|
@ -991,6 +991,12 @@ gkey kbxget_raw(int mode) {
|
||||
k = 0x8100;
|
||||
else if(isalpha(key2))
|
||||
k = (scancode_table[key2]);
|
||||
else if(key2 == '\010')
|
||||
k = Key_A_BS;
|
||||
else if(key2 == '\011')
|
||||
k = Key_A_Tab;
|
||||
else if(key2 == '\015')
|
||||
k = Key_A_Ent;
|
||||
else {
|
||||
// No correct Alt-sequence; ungetch last key and return Esc
|
||||
if (mode != 1)
|
||||
@ -1305,6 +1311,8 @@ gkey kbxget_raw(int mode) {
|
||||
shifts = 0;
|
||||
if(shifts & ALT)
|
||||
k = Key_A_BS;
|
||||
else if(shifts & GCTRL)
|
||||
k = Key_C_BS;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -145,20 +145,25 @@ void gareafile::ReadCrashmail(char* tag) {
|
||||
break;
|
||||
case CRC_AREA:
|
||||
case CRC_NETMAIL:
|
||||
case CRC_LOCALAREA:
|
||||
case CRC_LOCALAREA:
|
||||
if(aa.type != 0xff) {
|
||||
if(not unconfirmed)
|
||||
AddNewArea(aa);
|
||||
aa.reset();
|
||||
}
|
||||
aa.type = (crc16 == CRC_NETMAIL) ? GMB_NET : (crc16 == CRC_LOCALAREA) ? GMB_LOCAL : GMB_ECHO;
|
||||
switch(aa.type) {
|
||||
case GMB_NET:
|
||||
switch(crc16) {
|
||||
case CRC_NETMAIL:
|
||||
aa.type = GMB_NET;
|
||||
aa.attr = attribsnet;
|
||||
break;
|
||||
case GMB_ECHO:
|
||||
case CRC_AREA:
|
||||
aa.type = GMB_ECHO;
|
||||
aa.attr = attribsecho;
|
||||
break;
|
||||
case CRC_LOCALAREA:
|
||||
aa.type = GMB_LOCAL;
|
||||
aa.attr = attribslocal;
|
||||
break;
|
||||
}
|
||||
unconfirmed = false;
|
||||
jbstrcpy(tmp, buf, 100, &jbcpos);
|
||||
|
Reference in New Issue
Block a user