Commit 58b009d3 authored by mae's avatar mae
Browse files

fix a small "flicker" issue when aborting or accepting renaming

parent c1120587
...@@ -774,10 +774,10 @@ void CPPEditor::abortRename() ...@@ -774,10 +774,10 @@ void CPPEditor::abortRename()
{ {
if (m_currentRenameSelection < 0) if (m_currentRenameSelection < 0)
return; return;
m_renameSelections[m_currentRenameSelection].format = m_occurrencesFormat;
m_currentRenameSelection = -1; m_currentRenameSelection = -1;
m_currentRenameSelectionBegin = QTextCursor(); m_currentRenameSelectionBegin = QTextCursor();
m_currentRenameSelectionEnd = QTextCursor(); m_currentRenameSelectionEnd = QTextCursor();
m_renameSelections.clear();
setExtraSelections(CodeSemanticsSelection, m_renameSelections); setExtraSelections(CodeSemanticsSelection, m_renameSelections);
} }
......
Supports Markdown
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