make displine private to display.c
This commit is contained in:
parent
b38cdd1cce
commit
9bc64414b3
@ -54,12 +54,12 @@
|
|||||||
/* XXX */
|
/* XXX */
|
||||||
#define MSGLINE 0 /* message line */
|
#define MSGLINE 0 /* message line */
|
||||||
#define MSGCOL 0 /* message column */
|
#define MSGCOL 0 /* message column */
|
||||||
|
static int * displine; /* screen line of displayed reference */
|
||||||
|
|
||||||
int filelen = sizeof("File") - 1; /* file name display field length */
|
int filelen = sizeof("File") - 1; /* file name display field length */
|
||||||
int fcnlen = sizeof("Function") - 1; /* function name display field length */
|
int fcnlen = sizeof("Function") - 1; /* function name display field length */
|
||||||
int numlen = 0; /* line number display field length */
|
int numlen = 0; /* line number display field length */
|
||||||
|
|
||||||
int *displine; /* screen line of displayed reference */
|
|
||||||
unsigned int disprefs; /* displayed references */
|
unsigned int disprefs; /* displayed references */
|
||||||
int field; /* input field */
|
int field; /* input field */
|
||||||
unsigned int mdisprefs; /* maximum displayed references */
|
unsigned int mdisprefs; /* maximum displayed references */
|
||||||
|
@ -165,7 +165,6 @@ extern size_t msrcfiles; /* maximum number of source files */
|
|||||||
extern int filelen; /* file name display field length */
|
extern int filelen; /* file name display field length */
|
||||||
extern int fcnlen; /* function name display field length */
|
extern int fcnlen; /* function name display field length */
|
||||||
extern int numlen; /* line number display field length */
|
extern int numlen; /* line number display field length */
|
||||||
extern int *displine; /* screen line of displayed reference */
|
|
||||||
extern unsigned int disprefs; /* displayed references */
|
extern unsigned int disprefs; /* displayed references */
|
||||||
extern int field; /* input field */
|
extern int field; /* input field */
|
||||||
extern unsigned int mdisprefs; /* maximum displayed references */
|
extern unsigned int mdisprefs; /* maximum displayed references */
|
||||||
|
@ -428,7 +428,7 @@ int process_mouse() {
|
|||||||
/* find the selected line */
|
/* find the selected line */
|
||||||
/* note: the selection is forced into range */
|
/* note: the selection is forced into range */
|
||||||
for(i = disprefs - 1; i > 0; --i) {
|
for(i = disprefs - 1; i > 0; --i) {
|
||||||
if(p->y1 >= displine[i]) { return false; }
|
if(p->y1 >= 1/*displine[i]*/) { return false; }
|
||||||
}
|
}
|
||||||
/* display it in the file with the editor */
|
/* display it in the file with the editor */
|
||||||
editref(i);
|
editref(i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user