mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
vim-patch:9.1.1056: Vim doesn't highlight to be inserted text when completing (#32251)
Problem: Vim doesn't highlight to be inserted text when completing
Solution: Add support for the "preinsert" 'completeopt' value
(glepnir)
Support automatically inserting the currently selected candidate word
that does not belong to the latter part of the leader.
fixes: vim/vim#3433
closes: vim/vim#16403
edd4ac3e89
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
@@ -103,6 +103,15 @@ static inline bool ascii_iswhite_or_nul(int c)
|
||||
return ascii_iswhite(c) || c == NUL;
|
||||
}
|
||||
|
||||
/// Checks if `c` is a space or tab or newline character or NUL.
|
||||
///
|
||||
/// @see {ascii_isdigit}
|
||||
static inline bool ascii_iswhite_nl_or_nul(int c)
|
||||
FUNC_ATTR_CONST FUNC_ATTR_ALWAYS_INLINE
|
||||
{
|
||||
return ascii_iswhite(c) || c == '\n' || c == NUL;
|
||||
}
|
||||
|
||||
/// Check whether character is a decimal digit.
|
||||
///
|
||||
/// Library isdigit() function is officially locale-dependent and, for
|
||||
|
Reference in New Issue
Block a user