We normally add a bit of extra space at end-of-file.
I already had code to avoid this in small panes. But it wasn't working
as line_height_post hadn't been initialised usefully.
Signed-off-by: NeilBrown <neil@brown.name>
- [ ] tabs can wrap around a newline - with part of tab at end of one
line and part at start of the next. Do I want that? do_measure()
decides.
-- [ ] in xcb, find-file draws result a pixel high, then moves done
+- [X] in xcb, find-file draws result a pixel high, then moves done
when cursor moves
- [ ] favourites... I want some favourite documents that are easy to
find, favourite directories, favourite make or shell commands.
line_height_pre = attr_find_int(start->mdata->attrs, "line-height");
if (line_height_pre < 1)
line_height_pre = 1;
+ /* We now have a better estimate than '1' */
+ line_height_post = line_height_pre;
y_pre = start->mdata->cy + line_height_pre;
y_post = start->mdata->h - y_pre;
} else {