History

Cleanup

cancel committed 6 years ago

Commit 1328b591 parent e2ecdcf2 files · +3 −9Browse files

Unified · Split

2 files
  1. term_util.c +2 −7
  2. term_util.h +1 −2
term_util.c+2−7
@@ -40,8 +40,7 @@ struct Qmsg { · 39 unmodified lines
4040
4141 struct Qmenu_item_extra {
4242 int user_id;
43− U8 owns_string : 1;
44− U8 is_spacer : 1;
43+ U8 owns_string : 1, is_spacer : 1;
4544 };
4645
4746 struct Qmenu {
@@ -65,11 +64,7 @@ struct Qform { · 17 unmodified lines
6564
6665 Qnav_stack qnav_stack;
6766
68−void qnav_init() {
69− qnav_stack.count = 0;
70− qnav_stack.stack_changed = false;
71− memset(qnav_stack.blocks, 0, sizeof(qnav_stack.blocks));
72−}
67+void qnav_init() { qnav_stack = (Qnav_stack){.blocks = {0}}; }
7368 void qnav_deinit() {
7469 while (qnav_stack.count != 0)
7570 qnav_stack_pop();
term_util.h+1−2
@@ -58,8 +58,7 @@ typedef enum { · 57 unmodified lines
5858
5959 typedef struct {
6060 Qblock_type_tag tag;
61− WINDOW *outer_window;
62− WINDOW *content_window;
61+ WINDOW *outer_window, *content_window;
6362 char const *title;
6463 int y, x;
6564 } Qblock;

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