mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
fix thinko in 'double space suppression'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3016 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d76cb8f1cf
commit
7f7275c914
@ -1396,7 +1396,7 @@ bool MathCursor::interpret(char c)
|
|||||||
// suppress direct insertion of to spaces in a row
|
// suppress direct insertion of to spaces in a row
|
||||||
// the still allows typing '<space>a<space>' and deleting the 'a', but
|
// the still allows typing '<space>a<space>' and deleting the 'a', but
|
||||||
// it is better than nothing
|
// it is better than nothing
|
||||||
if (hasPrevAtom() && prevAtom()->getChar() == ' ')
|
if (c == ' ' && hasPrevAtom() && prevAtom()->getChar() == ' ')
|
||||||
return true;
|
return true;
|
||||||
insert(c, LM_TC_TEXTRM);
|
insert(c, LM_TC_TEXTRM);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user