Fixed ToLower, ToUpper functons in Editor

This commit is contained in:
Alexander S. Aganichev
2001-05-17 05:14:33 +00:00
parent 8a624926cc
commit 478e6e0e62
4 changed files with 8 additions and 5 deletions

View File

@@ -1887,7 +1887,7 @@ void IEclass::ToLower() {
GFTRK("EditToLower");
if(col >= currline->txt.length()) {
if(col < currline->txt.length()) {
Undo->PushItem(EDIT_UNDO_OVR_CHAR);
currline->txt[col] = tolower(currline->txt[col]);
}
@@ -1902,7 +1902,7 @@ void IEclass::ToggleCase() {
GFTRK("EditToggleCase");
if(col >= currline->txt.length()) {
if(col < currline->txt.length()) {
Undo->PushItem(EDIT_UNDO_OVR_CHAR);
if(toupper(currline->txt[col]) == currline->txt[col])
currline->txt[col] = tolower(currline->txt[col]);

View File

@@ -125,7 +125,7 @@ void GMsgList::close() {
void GMsgList::update_marks(MLst *ml) {
ml->high = 0;
ml->high &= ~(MLST_HIGH_BOOK|MLST_HIGH_MARK);
strcpy(ml->marks, " ");
@@ -157,6 +157,7 @@ void GMsgList::ReadMlst(int n) {
ml->msgno = AA->Msgn.CvtReln(n + 1);
ml->high = 0;
update_marks(ml);
if(AA->Msglistfast()) {