Skip to content

Commit

Permalink
fix: Disable cursor blinking in vim mode
Browse files Browse the repository at this point in the history
  • Loading branch information
coder3101 committed Feb 17, 2024
1 parent d205dae commit cd10f83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Editor/CodeEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ void CodeEditor::setHighlightCurrentLine(bool enabled)
void CodeEditor::setVimCursor(bool value)
{
m_vimCursor = value;
// Do not flash the cursor in vim mode
QApplication::setCursorFlashTime(m_vimCursor ? 0 : 1000);

setOverwriteMode(false);
updateCursorWidth();
Expand Down

0 comments on commit cd10f83

Please sign in to comment.