diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 19:50:02 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 19:50:02 +1100 |
commit | e67f7db968e376c9971dd3a4d4ab3fae4a06bf78 (patch) | |
tree | 2a7255cf4a125c60cf290be8d1b7ea290f42b015 /sftp.c | |
parent | dce7a92c7a1dbdfc280d6274eb5dfa5fce062acf (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 */ |
1509 | static void | 1508 | static 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" */ |
1670 | static int | 1671 | static int |
1671 | complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path, | 1672 | complete_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 | ||
1842 | int | 1844 | int |
1843 | interactive_loop(struct sftp_conn *conn, char *file1, char *file2) | 1845 | interactive_loop(struct sftp_conn *conn, char *file1, char *file2) |