Files
neovim/src/nvim/normal.h
zeertzjq a56f4d221e vim-patch:partial:9.2.0806: 'showcmd' may show internal command keys
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>
2026-07-26 07:07:35 +08:00

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"