tweaks: move declaration of variable that does not need to be global
More importantly: searching in src/history.c will now not only find the uses of 'position_history' but also its declaration.master
parent
a5ef013e82
commit
de47b58dc1
|
@ -216,9 +216,6 @@ filestruct *replacebot = NULL;
|
|||
|
||||
filestruct *executetop = NULL;
|
||||
filestruct *executebot = NULL;
|
||||
|
||||
poshiststruct *position_history = NULL;
|
||||
/* The list of filenames with their last cursor positions. */
|
||||
#endif
|
||||
|
||||
regex_t search_regexp;
|
||||
|
|
|
@ -40,6 +40,8 @@ static struct stat stat_of_positions_file;
|
|||
/* The last-obtained stat information of the positions file. */
|
||||
static char *poshistname = NULL;
|
||||
/* The name of the positions-history file. */
|
||||
static poshiststruct *position_history = NULL;
|
||||
/* The list of filenames with their last cursor positions. */
|
||||
|
||||
/* Initialize the lists of historical search and replace strings
|
||||
* and the list of historical executed commands. */
|
||||
|
|
|
@ -154,7 +154,6 @@ extern filestruct *replacetop;
|
|||
extern filestruct *replacebot;
|
||||
extern filestruct *executetop;
|
||||
extern filestruct *executebot;
|
||||
extern poshiststruct *position_history;
|
||||
#endif
|
||||
|
||||
extern regex_t search_regexp;
|
||||
|
|
Loading…
Reference in New Issue