summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sc.h1
-rw-r--r--src/screen.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/sc.h b/src/sc.h
index ef5aec5..b3da7be 100644
--- a/src/sc.h
+++ b/src/sc.h
@@ -244,6 +244,7 @@ struct go_save {
#define CELLOK 0
#define CELLERROR 1
#define CELLINVALID 2
+#define CELLREF 3
/* calculation order */
#define BYCOLS 1
#define BYROWS 2
diff --git a/src/screen.c b/src/screen.c
index 5cf59cb..8f6f92d 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -525,6 +525,13 @@ void show_content(WINDOW * win, int mxrow, int mxcol) {
strcpy(text, "ERROR");
num[0]='\0';
}
+ if ((*p)->cellerror == CELLREF) {
+ (void) mvprintw(row + RESROW + 1 - offscr_sc_rows, c, "%*.*s", fwidth[col], fwidth[col], "REF");
+ align = 0;
+ strcpy(text, "REF");
+ num[0]='\0';
+ }
+
// repaint a blank cell, because of in range, or because we have a coloured empty cell!
if ( ( !((*p)->flags & is_valid) && !(*p)->label ) && !((*p)->cellerror == CELLERROR) ) {