[line_buffer] missed invalidating a sb ref

pull/254/head
Timothy Stack 9 years ago
parent fa89ecc5e5
commit 82574e2e27

@ -251,6 +251,7 @@ throw (error)
* The request is outside the cached range, need to reload the
* whole thing.
*/
this->lb_share_manager.invalidate_refs();
prefill = 0;
this->lb_buffer_size = 0;
if ((this->lb_file_size != (ssize_t)-1) &&

@ -88,8 +88,8 @@ public:
struct line_range body;
string_attrs_t sa;
this->ldh_file->read_full_message(ll, this->ldh_msg);
this->ldh_line_values.clear();
this->ldh_file->read_full_message(ll, this->ldh_msg);
format->annotate(this->ldh_msg, sa, this->ldh_line_values);
body = find_string_attr_range(sa, &textview_curses::SA_BODY);

@ -1152,13 +1152,13 @@ void external_log_format::get_subline(const logline &ll, shared_buffer_ref &sbr,
if (full_message) {
sbr.share(this->jlf_share_manager,
&this->jlf_cached_line[0],
this->jlf_cached_line.size());
&this->jlf_cached_line[0],
this->jlf_cached_line.size());
}
else {
sbr.share(this->jlf_share_manager,
&this->jlf_cached_line[0] + this_off,
next_off - this_off);
&this->jlf_cached_line[0] + this_off,
next_off - this_off);
}
}

Loading…
Cancel
Save