diff --git a/edit/edit.c b/edit/edit.c
index ff2b2e7..4bce119 100644
a
|
b
|
edit_move_backward_lots (WEdit *edit, long increment) |
1096 | 1096 | #endif /* ! FAST_MOVE_CURSOR */ |
1097 | 1097 | |
1098 | 1098 | /* moves the cursor right or left: increment positive or negative respectively */ |
1099 | | int edit_cursor_move (WEdit * edit, long increment) |
| 1099 | void edit_cursor_move (WEdit * edit, long increment) |
1100 | 1100 | { |
1101 | 1101 | /* this is the same as a combination of two of the above routines, with only one push onto the undo stack */ |
1102 | 1102 | int c; |
… |
… |
int edit_cursor_move (WEdit * edit, long increment) |
1104 | 1104 | #ifdef FAST_MOVE_CURSOR |
1105 | 1105 | if (increment < -256) { |
1106 | 1106 | edit->force |= REDRAW_PAGE; |
1107 | | return edit_move_backward_lots (edit, -increment); |
| 1107 | edit_move_backward_lots (edit, -increment); |
| 1108 | return; |
1108 | 1109 | } |
1109 | 1110 | #endif /* ! FAST_MOVE_CURSOR */ |
1110 | 1111 | |
1111 | 1112 | if (increment < 0) { |
1112 | 1113 | for (; increment < 0; increment++) { |
1113 | 1114 | if (!edit->curs1) |
1114 | | return -1; |
| 1115 | return; |
1115 | 1116 | |
1116 | 1117 | edit_push_action (edit, CURS_RIGHT); |
1117 | 1118 | |
… |
… |
int edit_cursor_move (WEdit * edit, long increment) |
1132 | 1133 | } |
1133 | 1134 | } |
1134 | 1135 | |
1135 | | return c; |
1136 | 1136 | } else if (increment > 0) { |
1137 | 1137 | for (; increment > 0; increment--) { |
1138 | 1138 | if (!edit->curs2) |
1139 | | return -2; |
| 1139 | return; |
1140 | 1140 | |
1141 | 1141 | edit_push_action (edit, CURS_LEFT); |
1142 | 1142 | |
… |
… |
int edit_cursor_move (WEdit * edit, long increment) |
1156 | 1156 | edit->force |= REDRAW_LINE_ABOVE; |
1157 | 1157 | } |
1158 | 1158 | } |
1159 | | return c; |
1160 | | } else |
1161 | | return -3; |
| 1159 | } |
1162 | 1160 | } |
1163 | 1161 | |
1164 | 1162 | /* These functions return positions relative to lines */ |
diff --git a/edit/edit.h b/edit/edit.h
index d7725b6..4a1c39b 100644
a
|
b
|
void edit_delete_line (WEdit * edit); |
149 | 149 | |
150 | 150 | int edit_delete (WEdit * edit); |
151 | 151 | void edit_insert (WEdit * edit, int c); |
152 | | int edit_cursor_move (WEdit * edit, long increment); |
| 152 | void edit_cursor_move (WEdit * edit, long increment); |
153 | 153 | void edit_push_action (WEdit * edit, long c, ...); |
154 | 154 | void edit_push_key_press (WEdit * edit); |
155 | 155 | void edit_insert_ahead (WEdit * edit, int c); |