X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText.h;h=01d47d69662ffba9ff06d21103222d62a99e3473;hb=9ec80456feed688440360e0a493cbf537c4fe5f9;hp=9736981941b2b7d99c337ef195d85f512b344dcc;hpb=2b493ff70f0ccc753125409096fa59563bfe13b8;p=lyx.git diff --git a/src/Text.h b/src/Text.h index 9736981941..01d47d6966 100644 --- a/src/Text.h +++ b/src/Text.h @@ -331,8 +331,9 @@ public: bool completionSupported(Cursor const & cur) const; /// CompletionList const * createCompletionList(Cursor const & cur) const; - /// - bool insertCompletion(Cursor & cur, docstring const & s, bool /*finished*/); + /// Do a completion at the cursor position. Return true on success. + /// The completion does not contain the prefix. Handles undo. + bool insertCompletion(Cursor & cur, docstring const & s); /// docstring completionPrefix(Cursor const & cur) const; /// find a paragraph before \p par with the given \p depth, if such