From c5afe0bef0c5f6f49da125b9e0b08d9e69e74c61 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Tue, 2 Jan 2018 20:42:22 +0800 Subject: [PATCH] disable cursor line block if cursor line highlight is disabled --- src/resources/vnote.ini | 9 ++++++--- src/utils/vvim.cpp | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/resources/vnote.ini b/src/resources/vnote.ini index f36127ff..3490ba7d 100644 --- a/src/resources/vnote.ini +++ b/src/resources/vnote.ini @@ -19,7 +19,10 @@ editor_style= current_notebook=0 tab_stop_width=4 is_expand_tab=true + +; Whether highlight cursor line highlight_cursor_line=true + highlight_selected_word=true highlight_searched_word=true auto_indent=true @@ -46,11 +49,11 @@ enable_code_block_highlight=true ; Enable image preview in edit mode enable_preview_images=true -; Enable image preview constraint in edit mode to constrain the widht of the preview -enable_preview_image_constraint=true +; Enable image preview constraint in edit mode to constrain the width of the preview +enable_preview_image_constraint=false ; Enable image constraint in read mode to constrain the width of the image -enable_image_constraint=true +enable_image_constraint=false ; Center image and add the alt text as caption enable_image_caption=false diff --git a/src/utils/vvim.cpp b/src/utils/vvim.cpp index 53c11188..2eb4ed70 100644 --- a/src/utils/vvim.cpp +++ b/src/utils/vvim.cpp @@ -2290,7 +2290,7 @@ void VVim::setMode(VimMode p_mode, bool p_clearSelection, int p_position) default: setCursorBlockMode(m_editor, CursorBlock::RightSide); - if (mdEditor) { + if (mdEditor && g_config->getHighlightCursorLine()) { QString color; if (m_mode == VimMode::Normal) { color = g_config->getEditorVimNormalBg();