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>
#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)
keep_layout = 2;
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()) {