commit - 852d03e8e077bb72156d63a038e272a0cee649f9
commit + 88597eafb34de49f196d7fe14c9c4c3738f4cf9d
blob - b38d537b6c9eb0b02818cd0949151c760d1ce86a
blob + c7ed6daaa8218496e0d4f18bf711cca551d49805
--- ui.c
+++ ui.c
static void cmd_previous_line(struct tab*);
static void cmd_next_line(struct tab*);
-static void cmd_forward_char(struct tab*);
static void cmd_backward_char(struct tab*);
+static void cmd_forward_char(struct tab*);
static void cmd_backward_paragraph(struct tab*);
static void cmd_forward_paragraph(struct tab*);
static void cmd_move_beginning_of_line(struct tab*);
}
static void
-cmd_forward_char(struct tab *tab)
+cmd_backward_char(struct tab *tab)
{
- tab->s.line_x++;
+ if (tab->s.line_x != 0)
+ tab->s.line_x--;
restore_cursor(tab);
}
static void
-cmd_backward_char(struct tab *tab)
+cmd_forward_char(struct tab *tab)
{
- if (tab->s.line_x != 0)
- tab->s.line_x--;
+ tab->s.line_x++;
restore_cursor(tab);
}