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
169da094
Commit
169da094
authored
7 years ago
by
David Lawrence Ramsey
Committed by
Benno Schulenberg
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
files: don't change file format when inserting into an existing buffer
This fixes
https://savannah.gnu.org/bugs/?52392
.
parent
e6a92b14
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/files.c
+5
-1
src/files.c
with
5 additions
and
1 deletion
+5
-1
src/files.c
View file @
169da094
...
...
@@ -1031,6 +1031,7 @@ void do_insertfile(void)
char
*
given
=
mallocstrcpy
(
NULL
,
""
);
/* The last answer the user typed at the statusbar prompt. */
#ifndef NANO_TINY
file_format
original_fmt
=
openfile
->
fmt
;
bool
execute
=
FALSE
;
#endif
...
...
@@ -1177,7 +1178,10 @@ void do_insertfile(void)
if
(
openfile
->
current
->
lineno
!=
was_current_lineno
||
openfile
->
current_x
!=
was_current_x
)
set_modified
();
#ifndef NANO_TINY
/* Don't change the format of the current file. */
openfile
->
fmt
=
original_fmt
;
#endif
refresh_needed
=
TRUE
;
}
...
...
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