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 21:00:25 +01:00
parent c8f40508e7
commit 857548d33b
2 changed files with 3 additions and 5 deletions

View File

@ -1068,11 +1068,6 @@ void Text::insertChar(Cursor & cur, char_type c)
par.eraseChar(pos - 1, cur.buffer()->params().track_changes); par.eraseChar(pos - 1, cur.buffer()->params().track_changes);
c = 0x2014; c = 0x2014;
pos--; pos--;
} else if (par.getChar(pos - 1) == 0x2014) {
// convert "----" to "-"
par.eraseChar(pos - 1, cur.buffer()->params().track_changes);
c = '-';
pos--;
} }
} }

View File

@ -62,6 +62,9 @@ What's new
- Polish the BibTeX add dialog (bug 9795). - Polish the BibTeX add dialog (bug 9795).
- Fix regression that was not allowing inserting more than three consecutive
dashes without jumping through hoops.
* DOCUMENTATION AND LOCALIZATION * DOCUMENTATION AND LOCALIZATION