mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
refactor: follow style guide
- reduce variable scope - prefer initialization over declaration and assignment
This commit is contained in:
@@ -451,7 +451,8 @@ static int del_history_entry(int histype, char *str)
|
||||
regmatch.rm_ic = false; // always match case
|
||||
|
||||
bool found = false;
|
||||
int i = idx, last = idx;
|
||||
int i = idx;
|
||||
int last = idx;
|
||||
do {
|
||||
histentry_T *hisptr = &history[histype][i];
|
||||
if (hisptr->hisstr == NULL) {
|
||||
|
Reference in New Issue
Block a user