TempleOS V5.03 Nightly (ISO SHA-1 f70d475)
This commit is contained in:
1 parent
201bc8a4dc
commit
2c532ea9f1
16 files changed
+1151
-1160
No files matched your search
+16
-1
@@ -21,6 +21,18 @@ U8 *EdOverStrikeCB(CDoc *,CDocEntry *doc_e,CTask *mem_task)
|
||||
return st;
|
||||
}
|
||||
|
||||
U8 *EdAutoSaveCB(CDoc *,CDocEntry *doc_e,CTask *mem_task)
|
||||
{
|
||||
CDoc *doc=doc_e->user_data;
|
||||
U8 *st=MAlloc(8,mem_task);
|
||||
if (doc->flags & DOCF_AUTO_SAVE)
|
||||
*st='S';
|
||||
else
|
||||
*st='Ä';
|
||||
st[1]=0;
|
||||
return st;
|
||||
}
|
||||
|
||||
U8 *EdFilterCB(CDoc *,CDocEntry *doc_e,CTask *mem_task)
|
||||
{
|
||||
CDoc *doc=doc_e->user_data;
|
||||
@@ -109,7 +121,7 @@ public Bool DocEd(CDoc *doc,I64 dof_flags=0)
|
||||
DocDataFmt(bdoc,doc_e);
|
||||
}
|
||||
|
||||
DocPrint(bdoc,"$$CM+BY+RX+NC,-30,1$$");
|
||||
DocPrint(bdoc,"$$CM+BY+RX+NC,-31,1$$");
|
||||
doc_e=DocPrint(bdoc,"$$TX+BD+TC,\" \"$$");
|
||||
doc_e->user_data=doc;
|
||||
doc_e->tag_cb=&EdMoreCB;
|
||||
@@ -124,6 +136,9 @@ public Bool DocEd(CDoc *doc,I64 dof_flags=0)
|
||||
doc_e->tag_cb=&EdOverStrikeCB;
|
||||
doc_e=DocPrint(bdoc,"$$TX+BD+TC,\" \"$$");
|
||||
doc_e->user_data=doc;
|
||||
doc_e->tag_cb=&EdAutoSaveCB;
|
||||
doc_e=DocPrint(bdoc,"$$TX+BD+TC,\" \"$$");
|
||||
doc_e->user_data=doc;
|
||||
doc_e->tag_cb=&EdDollarCB;
|
||||
doc_e=DocPrint(bdoc,"$$DA+BD+RD-TRM,A=\"Line:%%04d \"$$");
|
||||
doc_e->data=&doc->line;
|
||||
|
||||
@@ -265,6 +265,8 @@ Bool DocCaptureUndo(CDoc *doc,Bool force=FALSE)
|
||||
u->doc_flags=doc->flags;
|
||||
res=TRUE;
|
||||
}
|
||||
if (doc->flags&DOCF_AUTO_SAVE)
|
||||
DocWrite(doc);
|
||||
if (unlock)
|
||||
DocUnlock(doc);
|
||||
}
|
||||
|
||||
@@ -577,9 +577,9 @@ public U0 DocPutKey(CDoc *doc,I64 ch=0,I64 sc=0)
|
||||
case CH_CTRLS:
|
||||
if (sc&SCF_SHIFT) {
|
||||
if (sc&SCF_KEY_DESC)
|
||||
KeyDescSet("Edit/Find Misspelled");
|
||||
KeyDescSet("Edit/Toggle AutoSave");
|
||||
else
|
||||
ACMisspelledFind(doc);
|
||||
LBtc(&doc->flags,DOCf_AUTO_SAVE);
|
||||
} else {
|
||||
if (sc&SCF_KEY_DESC)
|
||||
KeyDescSet("Edit/Save");
|
||||
|
||||
Reference in new issue
Block a user