History

Cleanup

cancel committed 6 years ago

Commit e2ecdcf1 parent ef5119a1 file · +3 −8Browse files

Unified · Split

tui_main.c+3−8
@@ -154,17 +154,12 @@ typedef enum { · 153 unmodified lines
154} Ged_input_mode;154} Ged_input_mode;
155 155
156typedef struct {156typedef struct {
157 Usz y;157 Usz y, x, h, w;
158 Usz x;
159 Usz h;
160 Usz w;
161} Ged_cursor;158} Ged_cursor;
162 159
163void ged_cursor_init(Ged_cursor *tc) {160void ged_cursor_init(Ged_cursor *tc) {
164 tc->y = 0;161 tc->x = tc->y = 0;
165 tc->x = 0;162 tc->w = tc->h = 1;
166 tc->h = 1;
167 tc->w = 1;
168}163}
169 164
170void ged_cursor_move_relative(Ged_cursor *tc, Usz field_h, Usz field_w,165void ged_cursor_move_relative(Ged_cursor *tc, Usz field_h, Usz field_w,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t