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
f920e0d3
Commit
f920e0d3
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: replace some unneeded direct calls of edit_refresh()
parent
0f3e303d
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
-3
src/nano.c
src/search.c
+2
-3
src/search.c
src/text.c
+1
-1
src/text.c
with
4 additions
and
7 deletions
+4
-7
src/nano.c
View file @
f920e0d3
...
...
@@ -1401,9 +1401,7 @@ void do_toggle(int flag)
signal_init
();
break
;
case
WHITESPACE_DISPLAY
:
titlebar
(
NULL
);
edit_refresh
();
break
;
titlebar
(
NULL
);
/* Fall through. */
#ifndef DISABLE_COLOR
case
NO_COLOR_SYNTAX
:
#endif
...
...
This diff is collapsed.
Click to expand it.
src/search.c
View file @
f920e0d3
...
...
@@ -103,7 +103,7 @@ void search_replace_abort(void)
{
#ifndef NANO_TINY
if
(
openfile
->
mark_set
)
edit_
refresh
()
;
refresh
_needed
=
TRUE
;
#endif
#ifdef HAVE_REGEX_H
regexp_cleanup
();
...
...
@@ -826,8 +826,7 @@ void do_replace(void)
openfile
->
edittop
=
edittop_save
;
openfile
->
current
=
begin
;
openfile
->
current_x
=
begin_x
;
edit_refresh
();
refresh_needed
=
TRUE
;
if
(
numreplaced
>=
0
)
statusline
(
HUSH
,
P_
(
"Replaced %lu occurrence"
,
...
...
This diff is collapsed.
Click to expand it.
src/text.c
View file @
f920e0d3
...
...
@@ -63,8 +63,8 @@ void do_mark(void)
statusbar
(
_
(
"Mark Unset"
));
openfile
->
mark_begin
=
NULL
;
openfile
->
mark_begin_x
=
0
;
refresh_needed
=
TRUE
;
}
edit_refresh
();
}
#endif
/* !NANO_TINY */
...
...
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