mirror of
https://github.com/neovim/neovim.git
synced 2026-07-31 20:59:11 +00:00
Problem: The `showcmd` statusline item may show internal command keys when a
`<Cmd>` or `<ScriptCmd>` mapping redraws the statusline, and may
leave stale text behind when `%S` is rendered directly.
Solution: Do not add these internal mapping dispatch keys to the `showcmd`
buffer, and keep the clear state in sync when `%S` renders it
(Barrett Ruth)
closes: vim/vim#20769
bd730293dc
Co-authored-by: Barrett Ruth <br@barrettruth.com>
21 lines
576 B
C
21 lines
576 B
C
#pragma once
|
|
|
|
#include <stddef.h> // IWYU pragma: keep
|
|
|
|
#include "nvim/macros_defs.h"
|
|
#include "nvim/normal_defs.h" // IWYU pragma: keep
|
|
#include "nvim/pos_defs.h" // IWYU pragma: keep
|
|
#include "nvim/types_defs.h" // IWYU pragma: keep
|
|
|
|
/// Values for find_ident_under_cursor()
|
|
enum {
|
|
FIND_IDENT = 1, ///< find identifier (word)
|
|
FIND_STRING = 2, ///< find any string (WORD)
|
|
FIND_EVAL = 4, ///< include "->", "[]" and "."
|
|
};
|
|
|
|
/// 'showcmd' buffer shared between normal.c and statusline.c
|
|
EXTERN char showcmd_buf[SHOWCMD_BUFLEN];
|
|
|
|
#include "normal.h.generated.h"
|