Commit ad11460e authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

remove more unneeded clearok(TRUE)'s, and avoid an unnecessary update

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2474 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 04652518
No related merge requests found
Showing with 9 additions and 5 deletions
+9 -5
...@@ -6,6 +6,8 @@ CVS code - ...@@ -6,6 +6,8 @@ CVS code -
guard to proto.h, and make the config.h #include in nano.h guard to proto.h, and make the config.h #include in nano.h
match the config.h #includes everywhere else. (DLR) match the config.h #includes everywhere else. (DLR)
- files.c: - files.c:
load_open_file()
- Remove an unneeded clearok(FALSE). (DLR)
get_next_filename() get_next_filename()
- Use a long instead of an int for the number prepended to the - Use a long instead of an int for the number prepended to the
filename. (DLR) filename. (DLR)
...@@ -14,6 +16,10 @@ CVS code - ...@@ -14,6 +16,10 @@ CVS code -
- If desc should be empty, allow it to be NULL instead of - If desc should be empty, allow it to be NULL instead of
"", since the latter is not necessarily translated as "". "", since the latter is not necessarily translated as "".
(DLR, found by Jordi) (DLR, found by Jordi)
do_alt_speller()
- Replace a set_modified() with SET(MODIFIED) to avoid an
unnecessary update, and remove an unneeded clearok(FALSE).
(DLR)
- utils.c: - utils.c:
num_of_digits() num_of_digits()
- Use a ssize_t instead of an int. (DLR) - Use a ssize_t instead of an int. (DLR)
......
...@@ -899,7 +899,6 @@ void load_open_file(void) ...@@ -899,7 +899,6 @@ void load_open_file(void)
edit_refresh(); edit_refresh();
/* Update the titlebar. */ /* Update the titlebar. */
clearok(topwin, FALSE);
titlebar(NULL); titlebar(NULL);
} }
......
...@@ -2341,11 +2341,10 @@ const char *do_alt_speller(char *tempfile_name) ...@@ -2341,11 +2341,10 @@ const char *do_alt_speller(char *tempfile_name)
} }
#endif #endif
/* Go back to the old position, mark the file as modified, and make /* Go back to the old position, mark the file as modified, and
* sure that the titlebar is refreshed. */ * update the titlebar. */
do_gotopos(lineno_save, current_x_save, current_y_save, pww_save); do_gotopos(lineno_save, current_x_save, current_y_save, pww_save);
set_modified(); SET(MODIFIED);
clearok(topwin, FALSE);
titlebar(NULL); titlebar(NULL);
return NULL; return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment