### completion
+- [ ] When 'delete' and there is only the original
+ entry of the prefix stack, just delete one character.
- [ ] mouse selection should work in completion pane
- [ ] filename completion should work for earlier component of path.
- [ ] The “complete” popup should be positioned above/below the file name,
stay there.
- [ ] extend enough that make/grep can use shell mode for running the
the command, and they just do ui and highlighting
+- [ ] always track time for a run and report it - or at least make it available
### edlibclient
- [ ] run edlib directly if no socket
set_screen(p);
resize_term(size.ws_row, size.ws_col);
- clear();
pane_resize(p, 0, 0, size.ws_row, size.ws_col);
return 1;
}
+DEF_CMD(force_redraw)
+{
+ struct pane *p = ci->home;
+ struct display_data *dd = p->data;
+
+ set_screen(p);
+ if (dd->cursor.y == 0) {
+
+ /* There seems to be an ncurses bug where redrawwin()
+ * doesn't refresh the first line when cursor is on that
+ * line, so move it down temporarily.
+ */
+ move(1, 1);
+ refresh();
+ }
+ redrawwin(curscr);
+ if (dd->cursor.y == 0 && dd->cursor.x >= 0)
+ /* Move cursor back */
+ move(dd->cursor.y, dd->cursor.x);
+ refresh();
+ return 1;
+}
+
static void ncurses_clear(struct pane *p safe, struct pane *display safe,
int attr, short x, short y, short w, short h)
{
"attach-display-ncurses");
nc_map = key_alloc();
- key_add(nc_map, "Display:refresh", &handle_winch);
+ key_add(nc_map, "Display:refresh", &force_redraw);
key_add(nc_map, "Display:close", &nc_close_display);
key_add(nc_map, "Display:set-noclose", &nc_set_noclose);
key_add(nc_map, "Close", &nc_close);