Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
e0e788e2
Commit
e0e788e2
authored
9 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: reshuffle a few things
parent
a617d9c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+1
-1
ChangeLog
src/files.c
+3
-3
src/files.c
src/winio.c
+3
-5
src/winio.c
with
7 additions
and
9 deletions
+7
-9
ChangeLog
View file @
e0e788e2
...
...
@@ -1173,7 +1173,7 @@ GNU nano 2.4.2 - 2015.07.05
2015-06-11 Benno Schulenberg <bensberg@justemail.net>
* src/winio.c (get_key_buffer): Add some debugging code to make it
easy to see what codes a key
stroke produces.
easy to see what codes a keystroke produces.
2015-06-07 Benno Schulenberg <bensberg@justemail.net>
* doc/texinfo/nano.texi: Show the node with the command-line options
...
...
This diff is collapsed.
Click to expand it.
src/files.c
View file @
e0e788e2
...
...
@@ -2232,15 +2232,15 @@ bool write_marked_file(const char *name, FILE *f_open, bool tmp,
int
do_writeout
(
bool
exiting
)
{
int
i
;
bool
result
=
FALSE
;
append_type
append
=
OVERWRITE
;
char
*
given
;
/* The filename we offer, or what the user typed so far. */
bool
maychange
=
FALSE
;
/* Whether it's okay to save the file under a different name. */
#ifndef DISABLE_EXTRA
static
bool
did_credits
=
FALSE
;
#endif
bool
maychange
=
FALSE
;
/* Whether it's okay to save the file under a different name. */
bool
result
=
FALSE
;
if
(
exiting
&&
ISSET
(
TEMP_FILE
)
&&
openfile
->
filename
[
0
]
!=
'\0'
)
{
if
(
write_file
(
openfile
->
filename
,
NULL
,
FALSE
,
OVERWRITE
,
FALSE
))
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
e0e788e2
...
...
@@ -36,8 +36,7 @@ static size_t key_buffer_len = 0;
static
int
statusblank
=
0
;
/* The number of keystrokes left before we blank the statusbar. */
static
bool
suppress_cursorpos
=
FALSE
;
/* Should we temporarily disable constant cursor position
* display? */
/* Should we skip constant position display for one keystroke? */
static
bool
seen_wide
=
FALSE
;
/* Whether we've seen a multicolumn character in the current line. */
...
...
@@ -2118,13 +2117,12 @@ void statusline(message_type importance, const char *msg, ...)
wattroff
(
bottomwin
,
A_BOLD
);
wattroff
(
bottomwin
,
interface_color_pair
[
STATUS_BAR
].
pairnum
);
/* Push the message to the screen straightaway. */
wnoutrefresh
(
bottomwin
);
doupdate
();
suppress_cursorpos
=
TRUE
;
/* Push the message to the screen straightaway. */
doupdate
();
/* If we're doing quick statusbar blanking, blank it after just one
* keystroke. Otherwise, blank it after twenty-six keystrokes, as
* Pico does. */
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help