mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Preserve the font when erasing a newline char.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1438 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4467a45110
commit
3f2bef2600
@ -1,5 +1,9 @@
|
||||
2001-02-01 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* text.C (Backspace): Preserve the font when changing newline char
|
||||
with a space.
|
||||
(BreakParagraph): If the cursor is before a space, delete the space.
|
||||
|
||||
* lyx_cb.C (QuitLyX): Do not save files when running with no gui.
|
||||
|
||||
2001-01-31 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
@ -1749,10 +1749,13 @@ void LyXText::BreakParagraph(BufferView * bview, char keep_layout)
|
||||
#endif
|
||||
);
|
||||
|
||||
// please break always behind a space
|
||||
// Always break behind a space
|
||||
//
|
||||
// It is better to erase the space (Dekel)
|
||||
if (cursor.pos() < cursor.par()->Last()
|
||||
&& cursor.par()->IsLineSeparator(cursor.pos()))
|
||||
cursor.pos(cursor.pos() + 1);
|
||||
cursor.par()->Erase(cursor.pos());
|
||||
// cursor.pos(cursor.pos() + 1);
|
||||
|
||||
// break the paragraph
|
||||
if (keep_layout)
|
||||
@ -2883,6 +2886,8 @@ void LyXText::Backspace(BufferView * bview)
|
||||
|
||||
if (cursor.pos() < cursor.par()->Last() && !cursor.par()->IsSeparator(cursor.pos())) {
|
||||
cursor.par()->InsertChar(cursor.pos(), ' ');
|
||||
SetCharFont(bview->buffer(), cursor.par(),
|
||||
cursor.pos(), current_font);
|
||||
// refresh the positions
|
||||
tmprow = row;
|
||||
while (tmprow->next() && tmprow->next()->par() == row->par()) {
|
||||
|
Loading…
Reference in New Issue
Block a user