Revert "topl.c globals moved to instance_globals."

This reverts commit b384223e1b.
This commit is contained in:
nhmall
2018-11-23 22:16:45 -05:00
parent 01bc4ab5e2
commit 44af1c78f3
6 changed files with 33 additions and 37 deletions

View File

@@ -5771,7 +5771,8 @@ char def;
{
char res, qbuf[QBUFSZ];
#ifdef DUMPLOG
unsigned idx = g.saved_pline_index;
extern unsigned saved_pline_index; /* pline.c */
unsigned idx = saved_pline_index;
/* buffer to hold query+space+formatted_single_char_response */
char dumplog_buf[QBUFSZ + 1 + 15]; /* [QBUFSZ+1+7] should suffice */
#endif
@@ -5788,7 +5789,7 @@ char def;
}
res = (*windowprocs.win_yn_function)(query, resp, def);
#ifdef DUMPLOG
if (idx == g.saved_pline_index) {
if (idx == saved_pline_index) {
/* when idx is still the same as saved_pline_index, the interface
didn't put the prompt into saved_plines[]; we put a simplified
version in there now (without response choices or default) */