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
Benno Schulenberg 2019-02-27 19:49:02 +01:00
parent a5ef013e82
commit de47b58dc1
3 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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. */

View File

@ -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;