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:
Enrico Forestieri 2017-02-25 14:13:02 +01:00
parent 73ccee113e
commit 3c329db0a5

View File

@ -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--;
}
}