From 0615e6a2feca74531d89ef588c30c1cb0984fa4d Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Wed, 16 May 2001 02:34:06 +0000 Subject: [PATCH] do_alt_speller() - Try to go to the same line we were on before before spell check (Rocco) git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@653 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ nano.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c1185e78..66a41443 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ CVS code - +- nano.c: + do_alt_speller() + - Try to go to the same line we were on before before spell check + (Rocco). nano 1.0.2 - 05/12/2001 - General: diff --git a/nano.c b/nano.c index 03a906d0..34e69026 100644 --- a/nano.c +++ b/nano.c @@ -1391,6 +1391,7 @@ int do_alt_speller(char *file_name) int alt_spell_status; pid_t pid_spell; char *ptr; + long lineno_cur = current->lineno; static int arglen = 3; static char **spellargs = (char **) NULL; @@ -1440,8 +1441,8 @@ int do_alt_speller(char *file_name) free_filestruct(fileage); global_init(); open_file(file_name, 0, 1); - edit_update(fileage, CENTER); - display_main_list(); + + do_gotoline(lineno_cur); set_modified(); return TRUE; -- 2.39.5