mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Allow inserting consecutive dashes
Because latex allows to do so, and there is no easy way to achieve this. This was apparently implemented to allow cycling between the various dash types, but it was a bad idea bringing no benefit and causing griefs.
This commit is contained in:
parent
73ccee113e
commit
3c329db0a5
@ -1057,11 +1057,6 @@ void Text::insertChar(Cursor & cur, char_type c)
|
||||
par.eraseChar(pos - 1, cur.buffer()->params().track_changes);
|
||||
c = 0x2014;
|
||||
pos--;
|
||||
} else if (par.getChar(pos - 1) == 0x2014) {
|
||||
// convert "----" to "-"
|
||||
par.eraseChar(pos - 1, cur.buffer()->params().track_changes);
|
||||
c = '-';
|
||||
pos--;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user