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
62ebd935
Commit
62ebd935
authored
7 years ago
by
David Lawrence Ramsey
Committed by
Benno Schulenberg
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: use printf's z modifier for (s)size_t, instead of casting
parent
a10fdc3f
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/rcfile.c
+1
-1
src/rcfile.c
src/text.c
+2
-3
src/text.c
src/winio.c
+3
-5
src/winio.c
with
6 additions
and
9 deletions
+6
-9
src/rcfile.c
View file @
62ebd935
...
...
@@ -146,7 +146,7 @@ void rcfile_error(const char *msg, ...)
rcfile_with_errors
=
strdup
(
nanorc
);
if
(
lineno
>
0
)
fprintf
(
stderr
,
_
(
"Error in %s on line %
l
u: "
),
nanorc
,
(
unsigned
long
)
lineno
);
fprintf
(
stderr
,
_
(
"Error in %s on line %
z
u: "
),
nanorc
,
lineno
);
va_start
(
ap
,
msg
);
vfprintf
(
stderr
,
_
(
msg
),
ap
);
...
...
This diff is collapsed.
Click to expand it.
src/text.c
View file @
62ebd935
...
...
@@ -3523,9 +3523,8 @@ void do_wordlinechar_count(void)
openfile
->
placewewant
=
pww_save
;
/* Display the total word, line, and character counts on the statusbar. */
statusline
(
HUSH
,
_
(
"%sWords: %lu Lines: %ld Chars: %lu"
),
was_mark
?
_
(
"In Selection: "
)
:
""
,
(
unsigned
long
)
words
,
(
long
)
nlines
,
(
unsigned
long
)
chars
);
statusline
(
HUSH
,
_
(
"%sWords: %zu Lines: %zd Chars: %zu"
),
was_mark
?
_
(
"In Selection: "
)
:
""
,
words
,
nlines
,
chars
);
}
#endif
/* !NANO_TINY */
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
62ebd935
...
...
@@ -3390,11 +3390,9 @@ void do_cursorpos(bool force)
charpct
=
(
openfile
->
totsize
==
0
)
?
0
:
100
*
sum
/
openfile
->
totsize
;
statusline
(
HUSH
,
_
(
"line %ld/%ld (%d%%), col %lu/%lu (%d%%), char %lu/%lu (%d%%)"
),
(
long
)
openfile
->
current
->
lineno
,
(
long
)
openfile
->
filebot
->
lineno
,
linepct
,
(
unsigned
long
)
cur_xpt
,
(
unsigned
long
)
cur_lenpt
,
colpct
,
(
unsigned
long
)
sum
,
(
unsigned
long
)
openfile
->
totsize
,
charpct
);
_
(
"line %zd/%zd (%d%%), col %zu/%zu (%d%%), char %zu/%zu (%d%%)"
),
openfile
->
current
->
lineno
,
openfile
->
filebot
->
lineno
,
linepct
,
cur_xpt
,
cur_lenpt
,
colpct
,
sum
,
openfile
->
totsize
,
charpct
);
/* Displaying the cursor position should not suppress it next time. */
suppress_cursorpos
=
FALSE
;
...
...
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