From 29bf57ff67ad1320f8b36f0bfa4756f362f416e3 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 3 Nov 2005 21:38:51 +0000
Subject: [PATCH] revert erroneous change

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3081 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog  | 4 ++--
 src/move.c | 4 +---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 179fcdb8..7952ceb7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -38,8 +38,8 @@ CVS code -
 	  file help.c; changes to help_init(), help_line_len(), and
 	  do_help() (all moved to help.c). (DLR)
 	- Tweak a few functions to remove the assumption that the file
-	  always ends in a magicline.  Changes to do_cut_till_end(),
-	  do_next_word(), and do_wordlinechar_count(). (DLR)
+	  always ends in a magicline.  Changes to do_cut_till_end() and
+	  do_wordlinechar_count(). (DLR)
 	- Tweak a few functions to rely on fileage and filebot instead
 	  of NULL for their checks to detect the top or bottom of the
 	  file.  Changes to cut_line(), cut_to_eol(), do_page_up(),
diff --git a/src/move.c b/src/move.c
index fc86a3bc..9e1a85aa 100644
--- a/src/move.c
+++ b/src/move.c
@@ -283,10 +283,8 @@ bool do_next_word(bool allow_punct, bool allow_update)
 
     /* If we haven't found it, leave the cursor at the end of the
      * file. */
-    if (openfile->current == NULL) {
+    if (openfile->current == NULL)
 	openfile->current = openfile->filebot;
-	openfile->current_x = strlen(openfile->filebot->data);
-    }
 
     openfile->placewewant = xplustabs();
 
-- 
GitLab