small fix
This commit is contained in:
parent
f20770693b
commit
dd7b7a4b8f
@ -76,7 +76,8 @@ void move_cursor(movement_t dir)
|
|||||||
editor.rx--;
|
editor.rx--;
|
||||||
break;
|
break;
|
||||||
case RIGHT:
|
case RIGHT:
|
||||||
if (editor.cx + 1 > editor.rows[editor.cy - 1].len)
|
if (editor.cx + 1 > editor.rows[editor.cy - 1].len
|
||||||
|
&& editor.cx + 1 > editor.screen_cols)
|
||||||
break;
|
break;
|
||||||
move_cursor_pos(++editor.cx, editor.cy);
|
move_cursor_pos(++editor.cx, editor.cy);
|
||||||
editor.rx++;
|
editor.rx++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user