&& par.isWordSeparator(cur.pos() - 1)) {
// get the word in front of cursor
LBUFERR(this == cur.text());
- cur.paragraph().updateWords();
+ par.updateWords();
}
}
namespace {
-std::function<void (InProgressProcess &)> EraseSnippet(string const & s) {
+std::function<void (InProgressProcess &)> EraseSnippet(string const & s)
+{
return [&s](InProgressProcess & process) {
BitmapFile & snippets = process.second.snippets;
BitmapFile::iterator it = snippets.begin();
if (it != end)
snippets.erase(it, it+1);
};
-};
+}
} // namespace
string DocFileName::mangledFileName(string const & dir) const
{
return mangledFileName(dir, true, false);
-};
+}
string DocFileName::mangledFileName(string const & dir, bool use_counter, bool encrypt_path) const
{