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

Place cursor after opening brace for function implementation

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

Reviewers: brauch

Reviewed By: brauch

Subscribers: brauch, kdevelop-devel

Tags: #kdevelop

Differential Revision:
parent 0c8061ff
...@@ -354,6 +354,9 @@ public: ...@@ -354,6 +354,9 @@ public:
} else { } else {
document->replaceText(word, m_replacement); 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