mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 06:19:52 +08:00
disable cursor line block if cursor line highlight is disabled
This commit is contained in:
parent
3f3a0e8513
commit
c5afe0bef0
@ -19,7 +19,10 @@ editor_style=
|
|||||||
current_notebook=0
|
current_notebook=0
|
||||||
tab_stop_width=4
|
tab_stop_width=4
|
||||||
is_expand_tab=true
|
is_expand_tab=true
|
||||||
|
|
||||||
|
; Whether highlight cursor line
|
||||||
highlight_cursor_line=true
|
highlight_cursor_line=true
|
||||||
|
|
||||||
highlight_selected_word=true
|
highlight_selected_word=true
|
||||||
highlight_searched_word=true
|
highlight_searched_word=true
|
||||||
auto_indent=true
|
auto_indent=true
|
||||||
@ -46,11 +49,11 @@ enable_code_block_highlight=true
|
|||||||
; Enable image preview in edit mode
|
; Enable image preview in edit mode
|
||||||
enable_preview_images=true
|
enable_preview_images=true
|
||||||
|
|
||||||
; Enable image preview constraint in edit mode to constrain the widht of the preview
|
; Enable image preview constraint in edit mode to constrain the width of the preview
|
||||||
enable_preview_image_constraint=true
|
enable_preview_image_constraint=false
|
||||||
|
|
||||||
; Enable image constraint in read mode to constrain the width of the image
|
; 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
|
; Center image and add the alt text as caption
|
||||||
enable_image_caption=false
|
enable_image_caption=false
|
||||||
|
@ -2290,7 +2290,7 @@ void VVim::setMode(VimMode p_mode, bool p_clearSelection, int p_position)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
setCursorBlockMode(m_editor, CursorBlock::RightSide);
|
setCursorBlockMode(m_editor, CursorBlock::RightSide);
|
||||||
if (mdEditor) {
|
if (mdEditor && g_config->getHighlightCursorLine()) {
|
||||||
QString color;
|
QString color;
|
||||||
if (m_mode == VimMode::Normal) {
|
if (m_mode == VimMode::Normal) {
|
||||||
color = g_config->getEditorVimNormalBg();
|
color = g_config->getEditorVimNormalBg();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user