cur.noScreenUpdate();
break;
}
+
+ cur.recordUndo();
+
docstring const & old_key = params()["key"];
docstring const & old_label = params()["label"];
docstring label = p["label"];
}
-void InsetBibitem::fillWithBibKeys(BiblioInfo & keys, InsetIterator const & it) const
+void InsetBibitem::collectBibKeys(InsetIterator const & it) const
{
docstring const key = getParam("key");
BibTeXInfo keyvalmap(false);
DocIterator doc_it(it);
doc_it.forwardPos();
keyvalmap[from_ascii("ref")] = doc_it.paragraph().asString();
- keys[key] = keyvalmap;
+ buffer().addBibTeXInfo(key, keyvalmap);
}
} else {
autolabel_ = from_ascii("??");
}
- if (!buffer().isBibInfoCacheValid()) {
- BiblioInfo bi = buffer().masterBibInfo();
- docstring const key = getParam("key");
- BibTeXInfo keyvalmap(false);
- keyvalmap.label(bibLabel());
- keyvalmap[from_ascii("ref")] = it.paragraph().asString();
- bi[key] = keyvalmap;
- }
}