Fixed ToLower, ToUpper functons in Editor
This commit is contained in:
@@ -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]);
|
||||
|
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user