Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
aa14526c
Commit
aa14526c
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: exclude from the tiny version five error-betraying messages
parent
d29d49ae
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/nano.c
+1
-1
src/nano.c
src/utils.c
+2
-0
src/utils.c
src/winio.c
+6
-0
src/winio.c
with
9 additions
and
1 deletion
+9
-1
src/nano.c
View file @
aa14526c
...
...
@@ -2007,7 +2007,7 @@ int main(int argc, char **argv)
textdomain
(
PACKAGE
);
#endif
#ifdef
ENABLE_UTF8
#if
def
ined(
ENABLE_UTF8
) && !defined(NANO_TINY)
if
(
MB_CUR_MAX
>
MAXCHARLEN
)
fprintf
(
stderr
,
"Unexpected large character size: %i bytes"
" -- please report a bug
\n
"
,
(
int
)
MB_CUR_MAX
);
...
...
This diff is collapsed.
Click to expand it.
src/utils.c
View file @
aa14526c
...
...
@@ -237,7 +237,9 @@ const char *strstrwrapper(const char *haystack, const char *needle,
const
char
*
start
)
{
if
(
*
needle
==
'\0'
)
{
#ifndef NANO_TINY
statusline
(
ALERT
,
"Searching for nothing -- please report a bug"
);
#endif
return
(
char
*
)
start
;
}
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
aa14526c
...
...
@@ -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
(
row
<
0
||
row
>=
editwinrows
)
{
#ifndef NANO_TINY
statusline
(
ALERT
,
"Badness: tried to display a line on row %i"
" -- please report a bug"
,
row
);
#endif
return
0
;
}
...
...
@@ -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. */
if
(
nrows
==
0
)
{
#ifndef NANO_TINY
statusline
(
ALERT
,
"Underscrolling -- please report a bug"
);
#endif
return
;
}
if
(
nrows
>=
editwinrows
)
{
#ifndef NANO_TINY
if
(
editwinrows
>
1
)
statusline
(
ALERT
,
"Overscrolling -- please report a bug"
);
#endif
refresh_needed
=
TRUE
;
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help