mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix indentation.
This commit is contained in:
parent
641ae5c7ad
commit
e91245362f
@ -290,15 +290,15 @@ static bool doInsertInset(Cursor & cur, Text * text,
|
||||
bool gotsel = false;
|
||||
if (cur.selection()) {
|
||||
if (cmd.action() == LFUN_INDEX_INSERT)
|
||||
copySelectionToTemp(cur);
|
||||
else
|
||||
cutSelectionToTemp(cur, false, pastesel);
|
||||
cur.clearSelection();
|
||||
gotsel = true;
|
||||
} else if (cmd.action() == LFUN_INDEX_INSERT) {
|
||||
gotsel = text->selectWordWhenUnderCursor(cur, WHOLE_WORD);
|
||||
copySelectionToTemp(cur);
|
||||
cur.clearSelection();
|
||||
else
|
||||
cutSelectionToTemp(cur, false, pastesel);
|
||||
cur.clearSelection();
|
||||
gotsel = true;
|
||||
} else if (cmd.action() == LFUN_INDEX_INSERT) {
|
||||
gotsel = text->selectWordWhenUnderCursor(cur, WHOLE_WORD);
|
||||
copySelectionToTemp(cur);
|
||||
cur.clearSelection();
|
||||
}
|
||||
text->insertInset(cur, inset);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user