Misc changes
This commit is contained in:
@@ -173,12 +173,6 @@ void OnCommand(Event event) {
|
||||
Scratch scratch;
|
||||
Array<Window *> order = GetWindowZOrder(scratch);
|
||||
|
||||
Window *window = GetWindow(ActiveWindowID);
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Handle wheel scrolling
|
||||
if (event.xwheel || event.ywheel) {
|
||||
Vec2I mouse = MouseVec2I();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
inline WindowID AllocWindowID(Window *window) {
|
||||
WindowID AllocWindowID(Window *window) {
|
||||
return {WindowIDs.id++, window};
|
||||
}
|
||||
|
||||
@@ -64,16 +64,16 @@ Window *FindWindow(BufferID buffer_id) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
inline Window *GetActiveWind() {
|
||||
Window *GetActiveWind() {
|
||||
return GetWindow(ActiveWindowID);
|
||||
}
|
||||
|
||||
inline bool IsDocumentSelectionValid() {
|
||||
bool IsDocumentSelectionValid() {
|
||||
if (DocumentSelected.id == -1) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool IsScrollbarSelectionValid() {
|
||||
bool IsScrollbarSelectionValid() {
|
||||
if (ScrollbarSelected.id == -1) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -25,18 +25,18 @@ struct Window {
|
||||
Int goto_list_pos;
|
||||
|
||||
struct {
|
||||
bool draw_scrollbar : 1;
|
||||
bool draw_line_numbers : 1;
|
||||
bool draw_darker : 1;
|
||||
bool draw_line_highlight : 1;
|
||||
bool visible : 1;
|
||||
bool layout : 1;
|
||||
bool close : 1;
|
||||
bool sync_visibility_with_focus : 1;
|
||||
bool lose_focus_on_escape : 1;
|
||||
bool lose_visibility_on_escape : 1;
|
||||
bool jump_history : 1;
|
||||
bool eval_command : 1;
|
||||
uint32_t draw_scrollbar : 1;
|
||||
uint32_t draw_line_numbers : 1;
|
||||
uint32_t draw_darker : 1;
|
||||
uint32_t draw_line_highlight : 1;
|
||||
uint32_t visible : 1;
|
||||
uint32_t layout : 1;
|
||||
uint32_t close : 1;
|
||||
uint32_t sync_visibility_with_focus : 1;
|
||||
uint32_t lose_focus_on_escape : 1;
|
||||
uint32_t lose_visibility_on_escape : 1;
|
||||
uint32_t jump_history : 1;
|
||||
uint32_t eval_command : 1;
|
||||
uint32_t skip_checkpoint : 1;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -160,7 +160,7 @@ void Command_ShowBufferList() {
|
||||
ActiveWindowID = command_bar.window->id;
|
||||
ResetBuffer(command_bar.buffer);
|
||||
For (Buffers) {
|
||||
if (it->special || it->garbage) {
|
||||
if (it->special || it->garbage || it->is_dir) {
|
||||
continue;
|
||||
}
|
||||
RawAppendf(command_bar.buffer, "\n%S", it->name);
|
||||
|
||||
Reference in New Issue
Block a user