From ad11460eb70cc0cb86ade28c040cdf12b619db31 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 16 Apr 2005 18:27:57 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ src/files.c | 1 - src/nano.c | 7 +++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2cf81bc2..bf113e2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ CVS code - guard to proto.h, and make the config.h #include in nano.h match the config.h #includes everywhere else. (DLR) - files.c: + load_open_file() + - Remove an unneeded clearok(FALSE). (DLR) get_next_filename() - Use a long instead of an int for the number prepended to the filename. (DLR) @@ -14,6 +16,10 @@ CVS code - - If desc should be empty, allow it to be NULL instead of "", since the latter is not necessarily translated as "". (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: num_of_digits() - Use a ssize_t instead of an int. (DLR) diff --git a/src/files.c b/src/files.c index 15181b0f..48d0caac 100644 --- a/src/files.c +++ b/src/files.c @@ -899,7 +899,6 @@ void load_open_file(void) edit_refresh(); /* Update the titlebar. */ - clearok(topwin, FALSE); titlebar(NULL); } diff --git a/src/nano.c b/src/nano.c index 66625341..137d0048 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2341,11 +2341,10 @@ const char *do_alt_speller(char *tempfile_name) } #endif - /* Go back to the old position, mark the file as modified, and make - * sure that the titlebar is refreshed. */ + /* Go back to the old position, mark the file as modified, and + * update the titlebar. */ do_gotopos(lineno_save, current_x_save, current_y_save, pww_save); - set_modified(); - clearok(topwin, FALSE); + SET(MODIFIED); titlebar(NULL); return NULL; -- 2.39.5