Skip to content
GitLab
Menu
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
17429d7f
Commit
17429d7f
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: fix some whitespace errors, and convert alignment tabs to spaces
parent
87206c06
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
src/browser.c
+1
-1
src/browser.c
src/chars.c
+1
-1
src/chars.c
src/files.c
+7
-7
src/files.c
src/global.c
+2
-2
src/global.c
src/help.c
+1
-1
src/help.c
src/history.c
+1
-1
src/history.c
src/nano.c
+2
-2
src/nano.c
src/nano.h
+29
-29
src/nano.h
src/search.c
+9
-9
src/search.c
src/text.c
+11
-12
src/text.c
src/winio.c
+20
-20
src/winio.c
with
84 additions
and
85 deletions
+84
-85
src/browser.c
View file @
17429d7f
This diff is collapsed.
Click to expand it.
src/chars.c
View file @
17429d7f
This diff is collapsed.
Click to expand it.
src/files.c
View file @
17429d7f
...
...
@@ -1452,9 +1452,9 @@ bool outside_of_confinement(const char *currpath, bool allow_tabcomp)
int
prompt_failed_backupwrite
(
const
char
*
filename
)
{
static
int
response
;
static
char
*
prevfile
=
NULL
;
/* What was the last file we were
*
passed so we don't keep asking
* this?
Though maybe we should
...
*/
static
char
*
prevfile
=
NULL
;
/* The last file we were
passed
,
so we don't keep asking
this.
*
Though maybe we should
?
*/
if
(
prevfile
==
NULL
||
strcmp
(
filename
,
prevfile
))
{
response
=
do_yesno_prompt
(
FALSE
,
_
(
"Failed to write backup file; "
"continue saving? (Say N if unsure.) "
));
...
...
@@ -1471,7 +1471,7 @@ void init_backup_dir(void)
backup_dir
=
free_and_assign
(
backup_dir
,
get_full_path
(
backup_dir
));
/* If we can't get an absolute path (which means it doesn't exist or
isn't accessible), or it's not a directory, fail. */
*
isn't accessible), or it's not a directory, fail. */
if
(
backup_dir
==
NULL
||
backup_dir
[
strlen
(
backup_dir
)
-
1
]
!=
'/'
)
die
(
_
(
"Invalid backup directory
\n
"
));
...
...
@@ -2224,8 +2224,8 @@ int do_writeout(bool exiting, bool withprompt)
if
(
ISSET
(
TEMP_FILE
)
&&
withprompt
)
{
free
(
given
);
if
(
response
==
1
)
return
write_file
(
openfile
->
filename
,
NULL
,
FALSE
,
OVERWRITE
,
TRUE
);
return
write_file
(
openfile
->
filename
,
NULL
,
FALSE
,
OVERWRITE
,
TRUE
);
else
if
(
response
==
0
)
return
2
;
else
...
...
This diff is collapsed.
Click to expand it.
src/global.c
View file @
17429d7f
This diff is collapsed.
Click to expand it.
src/help.c
View file @
17429d7f
This diff is collapsed.
Click to expand it.
src/history.c
View file @
17429d7f
This diff is collapsed.
Click to expand it.
src/nano.c
View file @
17429d7f
This diff is collapsed.
Click to expand it.
src/nano.h
View file @
17429d7f
This diff is collapsed.
Click to expand it.
src/search.c
View file @
17429d7f
This diff is collapsed.
Click to expand it.
src/text.c
View file @
17429d7f
...
...
@@ -3139,8 +3139,7 @@ void do_linter(void)
*
* filenameorcategory:line:column:message (e.g. splint)
* filenameorcategory:line,column:message (e.g. pylint)
* filenameorcategory:line:message (e.g. pyflakes)
*/
* filenameorcategory:line:message (e.g. pyflakes) */
if
(
strstr
(
message
,
": "
)
!=
NULL
)
{
filename
=
strtok
(
read_buff_word
,
":"
);
if
((
linestr
=
strtok
(
NULL
,
":"
))
!=
NULL
)
{
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
17429d7f
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