]> git.wh0rd.org Git - nano.git/commitdiff
do_alt_speller() - Try to go to the same line we were on before before spell check...
authorChris Allegretta <chrisa@asty.org>
Wed, 16 May 2001 02:34:06 +0000 (02:34 +0000)
committerChris Allegretta <chrisa@asty.org>
Wed, 16 May 2001 02:34:06 +0000 (02:34 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@653 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
nano.c

index c1185e785a8e0ee963abf660768f6b373a053b34..66a4144378cf1c01e1ce3416e65b9361f95db962 100644 (file)
--- 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 03a906d06227332b4e503e1573462683447bcc88..34e69026941593c2ce94157da960047c3f4c31c2 100644 (file)
--- 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;