summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-01-08 19:50:02 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-01-08 19:50:02 +1100
commite67f7db968e376c9971dd3a4d4ab3fae4a06bf78 (patch)
tree2a7255cf4a125c60cf290be8d1b7ea290f42b015 /sftp.c
parentdce7a92c7a1dbdfc280d6274eb5dfa5fce062acf (diff)
- (dtucker) [sftp.c] ifdef out the sftp completion bits for platforms that
don't have libedit.
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sftp.c b/sftp.c
index 6a5ccc49d..c994887e3 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1503,7 +1503,6 @@ prompt(EditLine *el)
1503{ 1503{
1504 return ("sftp> "); 1504 return ("sftp> ");
1505} 1505}
1506#endif
1507 1506
1508/* Display entries in 'list' after skipping the first 'len' chars */ 1507/* Display entries in 'list' after skipping the first 'len' chars */
1509static void 1508static void
@@ -1646,6 +1645,7 @@ complete_cmd_parse(EditLine *el, char *cmd, int lastarg, char quote,
1646 1645
1647 return count; 1646 return count;
1648} 1647}
1648#endif
1649 1649
1650/* 1650/*
1651 * Determine whether a particular sftp command's arguments (if any) 1651 * Determine whether a particular sftp command's arguments (if any)
@@ -1666,6 +1666,7 @@ complete_is_remote(char *cmd) {
1666 return -1; 1666 return -1;
1667} 1667}
1668 1668
1669#ifdef USE_LIBEDIT
1669/* Autocomplete a filename "file" */ 1670/* Autocomplete a filename "file" */
1670static int 1671static int
1671complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path, 1672complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path,
@@ -1838,6 +1839,7 @@ complete(EditLine *el, int ch)
1838 xfree(line); 1839 xfree(line);
1839 return ret; 1840 return ret;
1840} 1841}
1842#endif /* USE_LIBEDIT */
1841 1843
1842int 1844int
1843interactive_loop(struct sftp_conn *conn, char *file1, char *file2) 1845interactive_loop(struct sftp_conn *conn, char *file1, char *file2)