diff --git a/src/nano.h b/src/nano.h
index 6acb2f794c8e74f390c1b60107c6aee3da033f65..096bdb959928ef30c90e4b18b5734b52a7862fe3 100644
--- a/src/nano.h
+++ b/src/nano.h
@@ -459,14 +459,14 @@ typedef struct historyheadtype {
 #define VIEW 1
 #define NOVIEW 0
 
-typedef enum {
-    TOP, CENTER, NONE
-} topmidnone;
-
 typedef enum {
     JUSTIFY, BEGIN, END
 } justbegend;
 
+typedef enum {
+    TOP, CENTER, NONE
+} topmidnone;
+
 /* Minimum editor window rows required for nano to work correctly. */
 #define MIN_EDITOR_ROWS 3