+2014-06-20 Benno Schulenberg <bensberg@justemail.net>
+ * src/proto.h, src/global.c: Remove two obsolete variables and
+ regroup some stuff.
+
2014-06-19 Benno Schulenberg <bensberg@justemail.net>
* src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
for consistency, and tweak the related comments.
/* The global list of color syntaxes. */
char *syntaxstr = NULL;
/* The color syntax name specified on the command line. */
-
#endif
bool edit_refresh_needed = FALSE;
/* Did a command mangle enough of the buffer refresh that we
* should repaint the screen? */
-const shortcut *currshortcut;
- /* The current shortcut list we're using. */
int currmenu;
/* The currently loaded menu. */
-
sc *sclist = NULL;
/* Pointer to the start of the shortcuts list. */
subnfunc *allfuncs = NULL;
#ifndef NANO_TINY
extern sigjmp_buf jump_buf;
extern bool jump_buf_main;
-extern bool use_undo;
#endif
#ifndef DISABLE_WRAPJUSTIFY
#if !defined(NANO_TINY) && !defined(DISABLE_NANORC)
extern char *whitespace;
extern int whitespace_len[2];
-extern undo_type last_action;
#endif
extern const char *exit_tag;
extern char *alt_speller;
#endif
-extern sc *sclist;
-extern subnfunc *allfuncs;
-extern subnfunc *exitfunc;
-extern subnfunc *uncutfunc;
#ifndef DISABLE_COLOR
extern syntaxtype *syntaxes;
extern char *syntaxstr;
#endif
extern bool edit_refresh_needed;
-extern const shortcut *currshortcut;
+
extern int currmenu;
+extern sc *sclist;
+extern subnfunc *allfuncs;
+extern subnfunc *exitfunc;
+extern subnfunc *uncutfunc;
#ifndef DISABLE_HISTORIES
extern filestruct *search_history;
extern filestruct *replaceage;
extern filestruct *replacebot;
extern poshiststruct *poshistory;
-void update_poshistory(char *filename, ssize_t lineno, ssize_t xpos);
#endif
#ifdef HAVE_REGEX_H
int check_dotnano(void);
void load_poshistory(void);
void save_poshistory(void);
+void update_poshistory(char *filename, ssize_t lineno, ssize_t xpos);
int check_poshistory(const char *file, ssize_t *line, ssize_t *column);
#endif
#ifndef DISABLE_COLOR