summaryrefslogtreecommitdiff
path: root/pico/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'pico/fileio.c')
-rw-r--r--pico/fileio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pico/fileio.c b/pico/fileio.c
index 5cf124c0..91eacf9d 100644
--- a/pico/fileio.c
+++ b/pico/fileio.c
@@ -95,6 +95,7 @@ ffgetline(UCS buf[], size_t nbuf, size_t *charsreturned, int msg)
{
size_t i;
UCS ucs;
+ static int displayed = 0;
if(charsreturned)
*charsreturned = 0;
@@ -121,8 +122,10 @@ ffgetline(UCS buf[], size_t nbuf, size_t *charsreturned, int msg)
if(charsreturned)
*charsreturned = nbuf - 1;
- if(msg)
+ if(msg && displayed == 0){
emlwrite("File has long line", NULL);
+ displayed = 1;
+ }
return FIOLNG;
}