mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
c3a34a64f1
* undo_funcs.h: Removed setCursorParUndo to simplify things a bit. Renamed setUndo family to recordUndo. Renamed FINISH to ATOMIC which I think is a bit clearer. EDIT is gone, since it was premature optimisation, and broken for mathed anyway. * undo_funcs.C (performUndoOrRedo): Cleaned up and made it work with cursor positioning in insets as well (math insets still do not work, but that's a different story anyway.) It mysteriously crashes sometimes with undo in the first paragraph, but I'm fairly confident that this is a compiler bug. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7358 a592a061-630c-0410-9148-cb99ea01b6c8
29 lines
627 B
C
29 lines
627 B
C
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 1995 Matthias Ettrich
|
|
* Copyright 1995-2001 The LyX Team.
|
|
*
|
|
* ====================================================== */
|
|
|
|
#include <config.h>
|
|
|
|
#include "undo.h"
|
|
|
|
Undo::Undo(undo_kind kind_arg, int inset,
|
|
int first, int last,
|
|
int cursor, int cursor_pos_arg,
|
|
ParagraphList const & par)
|
|
:
|
|
kind(kind_arg),
|
|
inset_id(inset),
|
|
first_par_offset(first),
|
|
last_par_offset(last),
|
|
cursor_par_offset(cursor),
|
|
cursor_pos(cursor_pos_arg),
|
|
pars(par)
|
|
{}
|
|
|