small fixes
This commit is contained in:
@@ -1285,8 +1285,6 @@ void IEclass::Newline() {
|
||||
// wrapped
|
||||
|
||||
Undo->PushItem(EDIT_UNDO_WRAP_TEXT|BATCH_MODE, currline->prev, _quotelen, _splitbuf.length() - _quotelen);
|
||||
|
||||
setlinetype(currline);
|
||||
}
|
||||
else {
|
||||
currline = currline->next;
|
||||
@@ -1295,6 +1293,7 @@ void IEclass::Newline() {
|
||||
|
||||
Undo->PushItem(EDIT_UNDO_WRAP_TEXT|BATCH_MODE, currline->prev, _quotelen1, _splitbuf.length() - _quotelen1);
|
||||
}
|
||||
setlinetype(currline);
|
||||
|
||||
// Move down the cursor
|
||||
col = 0;
|
||||
|
@@ -29,9 +29,13 @@
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
char* GetRandomLine(char* __buf, size_t __bufsize, const char* __file) {
|
||||
char* GetRandomLine(char* __buf, size_t __bufsize, const char* file) {
|
||||
|
||||
Path indexfile;
|
||||
Path __file;
|
||||
|
||||
strxcpy(__file, file, sizeof(Path));
|
||||
strschg_environ(__file);
|
||||
|
||||
replaceextension(indexfile, __file, ".sdx");
|
||||
|
||||
|
@@ -512,6 +512,7 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
|
||||
(mode != MODE_WRITEHEADER) and
|
||||
(mode != MODE_WRITE) and
|
||||
(mode != MODE_HEADER)))) {
|
||||
indexfile[0] = '\0';
|
||||
strtrim(ptr);
|
||||
ptr = strskip_wht(strskip_txt(ptr));
|
||||
if(*ptr) {
|
||||
@@ -536,7 +537,9 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
|
||||
strcpy(textfile, "random.txt");
|
||||
}
|
||||
|
||||
replaceextension(indexfile, textfile, ".mdx");
|
||||
if(indexfile[0] == '\0') {
|
||||
replaceextension(indexfile, textfile, ".mdx");
|
||||
}
|
||||
|
||||
MakePathname(textfile, CFG->cookiepath, textfile);
|
||||
MakePathname(indexfile, CFG->cookiepath, indexfile);
|
||||
|
Reference in New Issue
Block a user