## STAGING
-* centering logic in view.c seems broken
+* implement mouse warping on search, jump to line, and focus change
* implement new version of tfetch (plumb)
* implement tide registrar
* implement tctl command
-* implement mouse warping on search, jump to line, and focus change
* gap buffer does not handle UTF-8 currently
* Line - Get the current line number(s) containing the selection
* refactor selection handling to avoid swapping manually (use buf_selbeg and buf_selend)
* encode EOL setting in log entries?
+* centering logic in view.c seems slightly broken
## BACKLOG
void win_update(int ms);
void win_loop(void);
void win_quit(void);
+void win_togglefocus(void);
+
View* win_view(WinRegion id);
Buf* win_buf(WinRegion id);
bool win_keymodsset(int mask);
before = X.now;
}
+void win_togglefocus(void) {
+ int ypos = (Focused == EDIT ? Divider/2 : (X.height - ((X.height-Divider) / 2)));
+ XWarpPointer(X.display, X.self, X.self, 0, 0, X.width, X.height, X.width/2, ypos);
+}
+
View* win_view(WinRegion id) {
return &(Regions[id == FOCUSED ? Focused : id]);
}
}
static void change_focus(char* arg) {
- /* move the mouse to the region */
+ win_togglefocus();
}
static void undo(char* arg) {