If async linecount is asked to find a mark, and we don't have a full
line count, then we aren't going to find the mark (because async
handlers forget about it).
So be honest up front and just forget about it. This ensure
consistency.
Signed-off-by: NeilBrown <neil@brown.name>
- [ ] lib-url
- [ ] lib-mergeview improvements
- [ ] lib-diff slowness with large diff
+- [ ] linecount :when used in 'view' mode, stack the counting pane with all the
+ others so it can easily catch view-changed.
### Large
Module features
---------------
+### lib-linecount
+
+- [ ] when used in 'view' mode, stack the counting pane with all the
+ others so it can easily catch view-changed. In general, make it
+ easier to use this way. e.g. easier than catching
+ doc:request:doc:CountLines.
+
### lib-server
- [ ] ctrl-z in elc doesn't ask edlib to release the terminal
/* nothing to do */
return;
+ if (end && !attr_find(p->attrs, "lines") && !sync)
+ /* We don't have totals, so do that first.
+ * When asked again, we will be able to find
+ * the mark quickly.
+ */
+ end = NULL;
+
m = vmark_first(p, type, owner);
if (m == NULL || doc_prior(p, m) != WEOF) {
/* No mark at doc start, make some */