nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 152cc24d1fb79dc43c0a59f746e1ef766a4ba0fb
parent 8965103a4d9dbee7ad28ba6196ba1311e2e9f46d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun,  1 Apr 2018 19:53:51 +0200

tweaks: reshuffle two declarations

Diffstat:
Msrc/global.c | 9++++-----
Msrc/proto.h | 5++---
2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -46,11 +46,6 @@ bool focusing = TRUE; bool as_an_at = TRUE; /* Whether a 0x0A byte should be shown as a ^@ instead of a ^J. */ -int margin = 0; - /* The amount of space reserved at the left for line numbers. */ -int editwincols = -1; - /* The number of usable columns in the edit window: COLS - margin. */ - bool suppress_cursorpos = FALSE; /* Should we skip constant position display for current keystroke? */ @@ -110,6 +105,10 @@ WINDOW *bottomwin = NULL; * messages, the statusbar prompt, and a list of shortcuts. */ int editwinrows = 0; /* How many rows does the edit window take up? */ +int editwincols = -1; + /* The number of usable columns in the edit window: COLS - margin. */ +int margin = 0; + /* The amount of space reserved at the left for line numbers. */ filestruct *cutbuffer = NULL; /* The buffer where we store cut text. */ diff --git a/src/proto.h b/src/proto.h @@ -40,9 +40,6 @@ extern bool focusing; extern bool as_an_at; -extern int margin; -extern int editwincols; - extern bool suppress_cursorpos; extern message_type lastmessage; @@ -95,6 +92,8 @@ extern WINDOW *topwin; extern WINDOW *edit; extern WINDOW *bottomwin; extern int editwinrows; +extern int editwincols; +extern int margin; extern filestruct *cutbuffer; extern filestruct *cutbottom;