From 1356a0a72d0033a7ea0c9375ad5df4c2673fca51 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Wed, 10 Sep 2003 20:31:02 +0000
Subject: [PATCH] change enum "topmidbotnone" to "topmidnone", since we no
 longer have a BOTTOM option

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

diff --git a/ChangeLog b/ChangeLog
index 72317981..56ebe609 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -35,7 +35,9 @@ CVS code -
 	- Translation updates (see po/ChangeLog for details).
 	- Since SAMELINEWRAP is only used in nano.c, make it a static
 	  variable in nano.c instead of a flag, and surround all
-	  wrap_reset() calls with DISABLE_WRAPPING  #ifdefs. (DLR)
+	  wrap_reset() calls with DISABLE_WRAPPING #ifdefs. (DLR)
+	- Change enum "topmidbotnone" to "topmidnone", as there's no
+	  BOTTOM option anymore. (DLR)
 - files.c:
   do_browser()
 	- Some of the Pico compatibility options in the file browser
diff --git a/src/nano.h b/src/nano.h
index 0945f0e5..32e254ed 100644
--- a/src/nano.h
+++ b/src/nano.h
@@ -420,8 +420,8 @@ know what you're doing */
 #define NOVIEW 0
 
 typedef enum {
-    CENTER, TOP, NONE
-} topmidbotnone;
+    TOP, CENTER, NONE
+} topmidnone;
 
 /* Minimum editor window rows required for nano to work correctly */
 #define MIN_EDITOR_ROWS 3
diff --git a/src/proto.h b/src/proto.h
index ab7fad19..62b3c460 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -483,7 +483,7 @@ void update_cursor(void);
 void center_cursor(void);
 void edit_refresh(void);
 void edit_refresh_clearok(void);
-void edit_update(filestruct *fileptr, topmidbotnone location);
+void edit_update(filestruct *fileptr, topmidnone location);
 int statusq(int tabs, const shortcut *s, const char *def,
 #ifndef NANO_SMALL
 		historyheadtype *history_list,
diff --git a/src/winio.c b/src/winio.c
index 22056d79..7b5f8de9 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -1381,7 +1381,7 @@ void edit_refresh_clearok(void)
  * Nice generic routine to update the edit buffer, given a pointer to the
  * file struct =) 
  */
-void edit_update(filestruct *fileptr, topmidbotnone location)
+void edit_update(filestruct *fileptr, topmidnone location)
 {
     if (fileptr == NULL)
 	return;
-- 
GitLab