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
938aa63d
Commit
938aa63d
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: drop some debugging stuff
parent
06ffcfaf
master
feature/match-parens
refactor/readbility
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/winio.c
+1
-18
src/winio.c
with
1 addition
and
18 deletions
+1
-18
src/winio.c
View file @
938aa63d
...
...
@@ -1651,9 +1651,7 @@ int get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts)
/* Adjust the index if we hit the last two wider ones. */
if
((
j
>
number
)
&&
(
*
mouse_x
%
i
<
COLS
%
i
))
j
-=
2
;
#ifdef DEBUG
fprintf
(
stderr
,
"Calculated %i as index in shortcut list, currmenu = %x.
\n
"
,
j
,
currmenu
);
#endif
/* Ignore releases/clicks of the first mouse button beyond
* the last shortcut. */
if
(
j
>
number
)
...
...
@@ -1671,9 +1669,6 @@ int get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts)
if
(
j
==
0
)
break
;
}
#ifdef DEBUG
fprintf
(
stderr
,
"Stopped on func %ld present in menus %x
\n
"
,
(
long
)
f
->
scfunc
,
f
->
menus
);
#endif
/* And put the corresponding key into the keyboard buffer. */
if
(
f
!=
NULL
)
{
...
...
@@ -3212,18 +3207,10 @@ void edit_refresh(void)
/* If the current line is out of view, get it back on screen. */
if
(
current_is_offscreen
())
{
#ifdef DEBUG
fprintf
(
stderr
,
"edit-refresh: line = %ld, edittop = %ld and editwinrows = %d
\n
"
,
(
long
)
openfile
->
current
->
lineno
,
(
long
)
openfile
->
edittop
->
lineno
,
editwinrows
);
#endif
openfile
->
current_y
=
editwinrows
-
1
;
adjust_viewport
((
focusing
||
!
ISSET
(
SMOOTH_SCROLL
))
?
CENTERING
:
STATIONARY
);
}
#ifdef DEBUG
fprintf
(
stderr
,
"edit-refresh: now edittop = %ld
\n
"
,
(
long
)
openfile
->
edittop
->
lineno
);
#endif
line
=
openfile
->
edittop
;
while
(
row
<
editwinrows
&&
line
!=
NULL
)
{
...
...
@@ -3267,10 +3254,6 @@ void adjust_viewport(update_type manner)
/* Move edittop back goal rows, starting at current[current_x]. */
go_back_chunks
(
goal
,
&
openfile
->
edittop
,
&
openfile
->
firstcolumn
);
#ifdef DEBUG
fprintf
(
stderr
,
"adjust_viewport(): setting edittop to lineno %ld
\n
"
,
(
long
)
openfile
->
edittop
->
lineno
);
#endif
}
/* Unconditionally redraw the entire screen. */
...
...
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