mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
vim-patch:8.1.1823: command line history code is spread out (#19688)
Problem: Command line history code is spread out.
Solution: Put the code in a new file. (Yegappan Lakshmanan, closes vim/vim#4779)
Also graduate the +cmdline_hist feature.
d7663c22c6
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "nvim/buffer.h"
|
||||
#include "nvim/change.h"
|
||||
#include "nvim/charset.h"
|
||||
#include "nvim/cmdhist.h"
|
||||
#include "nvim/cursor.h"
|
||||
#include "nvim/debugger.h"
|
||||
#include "nvim/diff.h"
|
||||
@@ -601,10 +602,9 @@ int do_cmdline(char *cmdline, LineGetter fgetline, void *cookie, int flags)
|
||||
|
||||
if (next_cmdline == NULL) {
|
||||
XFREE_CLEAR(cmdline_copy);
|
||||
//
|
||||
|
||||
// If the command was typed, remember it for the ':' register.
|
||||
// Do this AFTER executing the command to make :@: work.
|
||||
//
|
||||
if (getline_equal(fgetline, cookie, getexline)
|
||||
&& new_last_cmdline != NULL) {
|
||||
xfree(last_cmdline);
|
||||
|
Reference in New Issue
Block a user