mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
refactor(getchar): rename test variable (#34769)
Also, test_disable_char_avail() is superseded by test_override() in Vim, so remove that from vim_diff.txt.
This commit is contained in:
@ -1866,7 +1866,7 @@ int vpeekc_any(void)
|
||||
/// @return true if a character is available, false otherwise.
|
||||
bool char_avail(void)
|
||||
{
|
||||
if (disable_char_avail_for_testing) {
|
||||
if (test_disable_char_avail) {
|
||||
return false;
|
||||
}
|
||||
no_mapping++;
|
||||
|
@ -17,7 +17,7 @@ typedef enum {
|
||||
|
||||
enum { NSCRIPT = 15, }; ///< Maximum number of streams to read script from
|
||||
|
||||
EXTERN bool disable_char_avail_for_testing INIT( = false);
|
||||
EXTERN bool test_disable_char_avail INIT( = false);
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "getchar.h.generated.h"
|
||||
|
Reference in New Issue
Block a user