Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 48e0f084 authored by Amish Naidu's avatar Amish Naidu

Place cursor after opening brace for function implementation

Summary:
This will place the cursor after the opening brace for the generated
body of the function implementation, similar to how the cursor is placed
after the opening parenthesis of an executed function declaration
completion.

Reviewers: brauch

Reviewed By: brauch

Subscribers: brauch, kdevelop-devel

Tags: #kdevelop

Differential Revision: https://phabricator.kde.org/D16386
parent 0c8061ff
......@@ -354,6 +354,9 @@ public:
} else {
document->replaceText(word, m_replacement);
}
// place cursor after the opening brace
view->setCursorPosition(view->cursorPosition() + KTextEditor::Cursor{-2, 1});
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment