aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-17 09:44:10 +0800
committerGitHub <noreply@github.com>2024-03-17 09:44:10 +0800
commitc52dfb6e840827a2de713e40ea8506491ec7ce0b (patch)
treee1fc46dfda47005588439c769cc4e75a51a08ca3 /src/nvim/normal.c
parentd114dbe9f79c1382298b04319b7ded88e95e3ee8 (diff)
downloadrneovim-c52dfb6e840827a2de713e40ea8506491ec7ce0b.tar.gz
rneovim-c52dfb6e840827a2de713e40ea8506491ec7ce0b.tar.bz2
rneovim-c52dfb6e840827a2de713e40ea8506491ec7ce0b.zip
fix(normal): don't check conceal when pressing 'r' (#27892)
Problem: Cursor line is unconcealed when pressing 'r' in Normal mode when 'concealcursor' contains 'n' but not 'i'. Solution: Don't check conceal when pressing 'r' in Normal mode. Vim doesn't have this problem because it doesn't call redrawWinline() in conceal_check_cursor_line() and instead sets a global variable.
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 3603a054b6..12f0bb631e 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -748,7 +748,7 @@ static void normal_get_additional_char(NormalState *s)
bool langmap_active = false; // using :lmap mappings
if (repl) {
State = MODE_REPLACE; // pretend Replace mode
- ui_cursor_shape(); // show different cursor shape
+ ui_cursor_shape_no_check_conceal(); // show different cursor shape
}
if (lang && curbuf->b_p_iminsert == B_IMODE_LMAP) {
// Allow mappings defined with ":lmap".