static void cursorDown()
{
- Curr.y++;
- if (Curr.y >= Max.y) {
- Curr.y = Max.y-1;
- if (Curr_File.start->next) {
- Curr_File.start = Curr_File.start->next;
- ScreenDirty = true;
- }
- }
- if (Loc.line->next)
+ if (Loc.line->next) {
+ Curr.y++;
+ if (Curr.y >= Max.y) {
+ Curr.y = Max.y-1;
+ if (Curr_File.start->next) {
+ Curr_File.start = Curr_File.start->next;
+ ScreenDirty = true;
+ }
+ }
Loc.line = Loc.line->next;
+ }
}
static void cursorUp()