mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Do not allow completion when there is an active selection
We do it in texted only, mathed is more difficult and not so relevant IMO.
This commit is contained in:
parent
68f6c671c5
commit
789acb4a95
@ -2194,7 +2194,8 @@ docstring Text::previousWord(CursorSlice const & sl) const
|
||||
bool Text::completionSupported(Cursor const & cur) const
|
||||
{
|
||||
Paragraph const & par = cur.paragraph();
|
||||
return cur.pos() > 0
|
||||
return !cur.selection()
|
||||
&& cur.pos() > 0
|
||||
&& (cur.pos() >= par.size() || par.isWordSeparator(cur.pos()))
|
||||
&& !par.isWordSeparator(cur.pos() - 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user