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
8b3213ca
Commit
8b3213ca
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: chuck some debugging stuff
parent
14c5f03e
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/winio.c
+5
-19
src/winio.c
with
5 additions
and
19 deletions
+5
-19
src/winio.c
View file @
8b3213ca
...
...
@@ -2226,37 +2226,23 @@ void bottombars(int menu)
blank_bottombars
();
#ifdef DEBUG
fprintf
(
stderr
,
"In bottombars, number of items ==
\"
%d
\"\n
"
,
(
int
)
number
);
#endif
/* Display the first number of shortcuts in the given menu that
* have a key combination assigned to them. */
for
(
f
=
allfuncs
,
i
=
0
;
i
<
number
&&
f
!=
NULL
;
f
=
f
->
next
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"Checking menu items...."
);
#endif
if
((
f
->
menus
&
menu
)
==
0
)
continue
;
#ifdef DEBUG
fprintf
(
stderr
,
"found one! f->menus = %x, desc =
\"
%s
\"\n
"
,
f
->
menus
,
f
->
desc
);
#endif
s
=
first_sc_for
(
menu
,
f
->
scfunc
);
if
(
s
==
NULL
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"Whoops, guess not, no shortcut key found for func!
\n
"
);
#endif
if
(
s
==
NULL
)
continue
;
}
wmove
(
bottomwin
,
1
+
i
%
2
,
(
i
/
2
)
*
itemwidth
);
#ifdef DEBUG
fprintf
(
stderr
,
"Calling onekey with keystr
\"
%s
\"
and desc
\"
%s
\"\n
"
,
s
->
keystr
,
f
->
desc
);
#endif
onekey
(
s
->
keystr
,
_
(
f
->
desc
),
itemwidth
+
(
COLS
%
itemwidth
));
i
++
;
}
/* Defeat a VTE bug by
mov
ing the cursor and forcing a screen update. */
/* Defeat a VTE bug by
hom
ing the cursor and forcing a screen update. */
wmove
(
bottomwin
,
0
,
0
);
wrefresh
(
bottomwin
);
}
...
...
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