mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
vim-patch:9.0.2133: Cannot detect overstrike mode in Cmdline mode (#26263)
Problem: Cannot detect overstrike mode in Cmdline mode
Solution: Make mode() return "cr" for overstrike
closes: vim/vim#13569
d1c3ef1f47
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "nvim/eval/typval.h"
|
||||
#include "nvim/event/defs.h"
|
||||
#include "nvim/event/multiqueue.h"
|
||||
#include "nvim/ex_getln.h"
|
||||
#include "nvim/getchar.h"
|
||||
#include "nvim/globals.h"
|
||||
#include "nvim/insexpand.h"
|
||||
@@ -210,6 +211,9 @@ void get_mode(char *buf)
|
||||
if (exmode_active) {
|
||||
buf[i++] = 'v';
|
||||
}
|
||||
if ((State & MODE_CMDLINE) && cmdline_overstrike()) {
|
||||
buf[i++] = 'r';
|
||||
}
|
||||
} else if (State & MODE_TERMINAL) {
|
||||
buf[i++] = 't';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user