Commit aa14526c authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: exclude from the tiny version five error-betraying messages

Showing with 9 additions and 1 deletion
+9 -1
...@@ -2007,7 +2007,7 @@ int main(int argc, char **argv) ...@@ -2007,7 +2007,7 @@ int main(int argc, char **argv)
textdomain(PACKAGE); textdomain(PACKAGE);
#endif #endif
#ifdef ENABLE_UTF8 #if defined(ENABLE_UTF8) && !defined(NANO_TINY)
if (MB_CUR_MAX > MAXCHARLEN) if (MB_CUR_MAX > MAXCHARLEN)
fprintf(stderr, "Unexpected large character size: %i bytes" fprintf(stderr, "Unexpected large character size: %i bytes"
" -- please report a bug\n", (int)MB_CUR_MAX); " -- please report a bug\n", (int)MB_CUR_MAX);
......
...@@ -237,7 +237,9 @@ const char *strstrwrapper(const char *haystack, const char *needle, ...@@ -237,7 +237,9 @@ const char *strstrwrapper(const char *haystack, const char *needle,
const char *start) const char *start)
{ {
if (*needle == '\0') { if (*needle == '\0') {
#ifndef NANO_TINY
statusline(ALERT, "Searching for nothing -- please report a bug"); statusline(ALERT, "Searching for nothing -- please report a bug");
#endif
return (char *)start; return (char *)start;
} }
......
...@@ -2687,8 +2687,10 @@ int update_line(filestruct *fileptr, size_t index) ...@@ -2687,8 +2687,10 @@ int update_line(filestruct *fileptr, size_t index)
/* If the line is offscreen, don't even try to display it. */ /* If the line is offscreen, don't even try to display it. */
if (row < 0 || row >= editwinrows) { if (row < 0 || row >= editwinrows) {
#ifndef NANO_TINY
statusline(ALERT, "Badness: tried to display a line on row %i" statusline(ALERT, "Badness: tried to display a line on row %i"
" -- please report a bug", row); " -- please report a bug", row);
#endif
return 0; return 0;
} }
...@@ -2903,12 +2905,16 @@ void edit_scroll(scroll_dir direction, int nrows) ...@@ -2903,12 +2905,16 @@ void edit_scroll(scroll_dir direction, int nrows)
/* Don't bother scrolling zero rows, nor more than the window can hold. */ /* Don't bother scrolling zero rows, nor more than the window can hold. */
if (nrows == 0) { if (nrows == 0) {
#ifndef NANO_TINY
statusline(ALERT, "Underscrolling -- please report a bug"); statusline(ALERT, "Underscrolling -- please report a bug");
#endif
return; return;
} }
if (nrows >= editwinrows) { if (nrows >= editwinrows) {
#ifndef NANO_TINY
if (editwinrows > 1) if (editwinrows > 1)
statusline(ALERT, "Overscrolling -- please report a bug"); statusline(ALERT, "Overscrolling -- please report a bug");
#endif
refresh_needed = TRUE; refresh_needed = TRUE;
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment