void view_init(View* view, char* file);
void view_resize(View* view, size_t nrows, size_t ncols);
+//void view_resize(View* view, size_t x, size_t y, size_t height, size_t width, size_t fheight, size_t fwidth);
void view_update(View* view, size_t* csrx, size_t* csry);
Row* view_getrow(View* view, size_t row);
void view_byrune(View* view, int move);
draw_glyphs(2, off + ((y+1) * fheight), row->cols, row->rlen, row->len);
}
/* Place cursor on screen */
- x11_draw_rect(CLR_BASE3, 2 + csrx * fwidth, off + (csry * fheight), 1, fheight);
+ if (view == Focused)
+ x11_draw_rect(CLR_BASE3, 2 + csrx * fwidth, off + (csry * fheight), 1, fheight);
return (off + 4 + (rows * x11_font_height(Font)));
}