From e4a6b62f03cf1b0901aa3e56aaea347267f287de Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 15 Apr 2009 17:00:43 +0000 Subject: [PATCH] InsetListings.cpp: simplify. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29246 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetListings.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index e9fd186f12..f0820a60e2 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -316,11 +316,8 @@ void InsetListings::doDispatch(Cursor & cur, FuncRequest & cmd) } else { // Maybe we shouldn't allow tabs within a line, because they // are not (yet) aligned as one might do expect. - cur.recordUndo(); - if (cur.selection()) - cap::cutSelection(cur, false, false); - cur.insert(from_ascii("\t")); - cur.finishUndo(); + FuncRequest cmd(LFUN_SELF_INSERT, from_ascii("\t")); + dispatch(cur, cmd); } break; } -- 2.39.2