mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 19:38:18 +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
c8f40508e7
commit
857548d33b
@ -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--;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user