mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
small cleanups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4910 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a07e20bf57
commit
7d23c29dee
@ -336,7 +336,9 @@ bool BufferView::gotoLabel(string const & label)
|
||||
|
||||
void BufferView::menuUndo()
|
||||
{
|
||||
if (available()) {
|
||||
if (!available())
|
||||
return;
|
||||
|
||||
owner()->message(_("Undo"));
|
||||
hideCursor();
|
||||
beforeChange(text);
|
||||
@ -347,19 +349,13 @@ void BufferView::menuUndo()
|
||||
update(text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
|
||||
switchKeyMap();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void BufferView::menuRedo()
|
||||
{
|
||||
#if 0 // this should not be here (Jug 20011206)
|
||||
if (theLockingInset()) {
|
||||
owner()->message(_("Redo not yet supported in math mode"));
|
||||
if (!available())
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (available()) {
|
||||
owner()->message(_("Redo"));
|
||||
hideCursor();
|
||||
beforeChange(text);
|
||||
@ -370,7 +366,6 @@ void BufferView::menuRedo()
|
||||
update(text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
|
||||
switchKeyMap();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void BufferView::copyEnvironment()
|
||||
|
@ -1,3 +1,10 @@
|
||||
2002-08-08 John Levon <levon@movementarian.org>
|
||||
|
||||
* BufferView2.C: small cleanup
|
||||
|
||||
* lyxfind.h:
|
||||
* lyxfind.C: move unnecessary header into the .C
|
||||
|
||||
2002-08-08 John Levon <levon@movementarian.org>
|
||||
|
||||
* funcrequest.h: just tedious nonsense
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include "lyxtext.h"
|
||||
#include "lyxfind.h"
|
||||
#include "paragraph.h"
|
||||
#include "frontends/LyXView.h"
|
||||
#include "frontends/Alert.h"
|
||||
#include "support/textutils.h"
|
||||
|
@ -7,9 +7,9 @@
|
||||
#endif
|
||||
|
||||
#include "LString.h"
|
||||
#include "paragraph.h"
|
||||
|
||||
class BufferView;
|
||||
class LyXText;
|
||||
|
||||
namespace lyxfind {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user