[build] minor fixes

This commit is contained in:
Timothy Stack 2020-12-07 09:04:14 -08:00
parent 836fc83203
commit 642fce3548
2 changed files with 1 additions and 2 deletions

View File

@ -245,7 +245,7 @@ void attr_line_t::apply_hide()
sattr.sa_range.length() > 3) {
struct line_range &lr = sattr.sa_range;
for_each(sa.begin(), sa.end(), [&] (string_attr &attr) {
std::for_each(sa.begin(), sa.end(), [&] (string_attr &attr) {
if (attr.sa_type == &view_curses::VC_STYLE &&
lr.contains(attr.sa_range)) {
attr.sa_type = &SA_REMOVED;

View File

@ -378,7 +378,6 @@ bool textview_curses::handle_mouse(mouse_event &me)
void textview_curses::textview_value_for_row(vis_line_t row,
attr_line_t &value_out)
{
view_colors &vc = view_colors::singleton();
bookmark_vector<vis_line_t> &user_marks = this->tc_bookmarks[&BM_USER];
string_attrs_t &sa = value_out.get_attrs();
string &str = value_out.get_string();