Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2772ecdd
Commit
2772ecdd
authored
Apr 27, 2011
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Plain Diff
Merge of fix for bug#12329909 from mysql-5.1 -> mysql-5.5.
parents
f73eb618
a1f7ceb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
cmd-line-utils/libedit/vi.c
cmd-line-utils/libedit/vi.c
+10
-2
No files found.
cmd-line-utils/libedit/vi.c
View file @
2772ecdd
...
@@ -1012,8 +1012,10 @@ vi_histedit(EditLine *el, int c __attribute__((__unused__)))
...
@@ -1012,8 +1012,10 @@ vi_histedit(EditLine *el, int c __attribute__((__unused__)))
if
(
fd
<
0
)
if
(
fd
<
0
)
return
CC_ERROR
;
return
CC_ERROR
;
cp
=
el
->
el_line
.
buffer
;
cp
=
el
->
el_line
.
buffer
;
write
(
fd
,
cp
,
el
->
el_line
.
lastchar
-
cp
+
0u
);
if
(
write
(
fd
,
cp
,
el
->
el_line
.
lastchar
-
cp
+
0u
)
==
-
1
)
write
(
fd
,
"
\n
"
,
1
);
goto
error
;
if
(
write
(
fd
,
"
\n
"
,
1
)
==
-
1
)
goto
error
;
pid
=
fork
();
pid
=
fork
();
switch
(
pid
)
{
switch
(
pid
)
{
case
-
1
:
case
-
1
:
...
@@ -1041,6 +1043,12 @@ vi_histedit(EditLine *el, int c __attribute__((__unused__)))
...
@@ -1041,6 +1043,12 @@ vi_histedit(EditLine *el, int c __attribute__((__unused__)))
unlink
(
tempfile
);
unlink
(
tempfile
);
/* return CC_REFRESH; */
/* return CC_REFRESH; */
return
ed_newline
(
el
,
0
);
return
ed_newline
(
el
,
0
);
/* XXXMYSQL: Avoid compiler warnings. */
error:
close
(
fd
);
unlink
(
tempfile
);
return
CC_ERROR
;
}
}
/* vi_history_word():
/* vi_history_word():
...
...
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