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
17cf833b
Commit
17cf833b
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: normalize some whitespace
parent
aaab6e57
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
src/browser.c
+5
-7
src/browser.c
src/chars.c
+3
-3
src/chars.c
src/files.c
+11
-9
src/files.c
src/help.c
+2
-2
src/help.c
src/nano.c
+7
-8
src/nano.c
src/nano.h
+2
-2
src/nano.h
src/prompt.c
+1
-1
src/prompt.c
src/text.c
+5
-6
src/text.c
src/winio.c
+3
-3
src/winio.c
with
39 additions
and
41 deletions
+39
-41
src/browser.c
View file @
17cf833b
...
...
@@ -311,16 +311,14 @@ char *do_browser(char *path)
#endif
if
(
stat
(
filelist
[
selected
],
&
st
)
==
-
1
)
{
/* We can't open this file for some reason.
* Complain. */
/* We can't open this file for some reason. Complain. */
statusline
(
ALERT
,
_
(
"Error reading %s: %s"
),
filelist
[
selected
],
strerror
(
errno
));
continue
;
}
if
(
!
S_ISDIR
(
st
.
st_mode
))
{
/* We've successfully opened a file, we're done, so
* get out. */
/* We've successfully opened a file, so we're done. */
retval
=
mallocstrcpy
(
NULL
,
filelist
[
selected
]);
break
;
}
...
...
This diff is collapsed.
Click to expand it.
src/chars.c
View file @
17cf833b
This diff is collapsed.
Click to expand it.
src/files.c
View file @
17cf833b
...
...
@@ -2987,13 +2987,15 @@ int check_dotnano(void)
if
(
stat
(
nanodir
,
&
dirstat
)
==
-
1
)
{
if
(
mkdir
(
nanodir
,
S_IRWXU
|
S_IRWXG
|
S_IRWXO
)
==
-
1
)
{
history_error
(
N_
(
"Unable to create directory %s: %s
\n
"
"It is required for saving/loading search history or cursor positions.
\n
"
),
"It is required for saving/loading "
"search history or cursor positions.
\n
"
),
nanodir
,
strerror
(
errno
));
ret
=
0
;
}
}
else
if
(
!
S_ISDIR
(
dirstat
.
st_mode
))
{
history_error
(
N_
(
"Path %s is not a directory and needs to be.
\n
"
"Nano will be unable to load or save search history or cursor positions.
\n
"
),
"Nano will be unable to load or save "
"search history or cursor positions.
\n
"
),
nanodir
);
ret
=
0
;
}
...
...
This diff is collapsed.
Click to expand it.
src/help.c
View file @
17cf833b
This diff is collapsed.
Click to expand it.
src/nano.c
View file @
17cf833b
...
...
@@ -1111,9 +1111,8 @@ void do_exit(void)
if
(
ISSET
(
TEMP_FILE
))
no_current_file_name_warning
();
i
=
do_yesno_prompt
(
FALSE
,
_
(
"Save modified buffer? (Answering
\"
No
\"
will"
" DISCARD changes.) "
));
i
=
do_yesno_prompt
(
FALSE
,
_
(
"Save modified buffer? "
"(Answering
\"
No
\"
will DISCARD changes.) "
));
}
#ifdef DEBUG
...
...
This diff is collapsed.
Click to expand it.
src/nano.h
View file @
17cf833b
This diff is collapsed.
Click to expand it.
src/prompt.c
View file @
17cf833b
This diff is collapsed.
Click to expand it.
src/text.c
View file @
17cf833b
...
...
@@ -3049,15 +3049,14 @@ const char *do_alt_speller(char *tempfile_name)
}
#endif
/* Replace the text of the current buffer with the spell-checked
* text. */
/* Replace the text of the current buffer with the spell-checked text. */
replace_buffer
(
tempfile_name
);
#ifndef NANO_TINY
if
(
old_mark_set
)
{
filestruct
*
top_save
=
openfile
->
fileage
;
/* Adjust the end point of the marked region for any change in
length of the region's last line. */
*
length of the region's last line. */
if
(
right_side_up
)
current_x_save
=
strlen
(
openfile
->
filebot
->
data
);
else
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
17cf833b
...
...
@@ -3059,8 +3059,8 @@ void total_refresh(void)
void
display_main_list
(
void
)
{
#ifndef DISABLE_COLOR
if
(
openfile
->
syntax
&&
(
openfile
->
syntax
->
formatter
||
openfile
->
syntax
->
linter
))
if
(
openfile
->
syntax
&&
(
openfile
->
syntax
->
formatter
||
openfile
->
syntax
->
linter
))
set_lint_or_format_shortcuts
();
else
set_spell_shortcuts
();
...
...
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