mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Filename completion for /DCC SEND looked files from wrong default directory.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2073 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
bd2af6cb98
commit
b3c0778dc4
@ -21,6 +21,8 @@
|
|||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include "signals.h"
|
#include "signals.h"
|
||||||
#include "levels.h"
|
#include "levels.h"
|
||||||
|
#include "misc.h"
|
||||||
|
#include "settings.h"
|
||||||
|
|
||||||
#include "dcc-file.h"
|
#include "dcc-file.h"
|
||||||
#include "dcc-send.h"
|
#include "dcc-send.h"
|
||||||
@ -101,6 +103,8 @@ static void sig_dcc_send_complete(GList **list, WINDOW_REC *window,
|
|||||||
const char *word, const char *line,
|
const char *word, const char *line,
|
||||||
int *want_space)
|
int *want_space)
|
||||||
{
|
{
|
||||||
|
char *path;
|
||||||
|
|
||||||
g_return_if_fail(list != NULL);
|
g_return_if_fail(list != NULL);
|
||||||
g_return_if_fail(word != NULL);
|
g_return_if_fail(word != NULL);
|
||||||
g_return_if_fail(line != NULL);
|
g_return_if_fail(line != NULL);
|
||||||
@ -109,7 +113,10 @@ static void sig_dcc_send_complete(GList **list, WINDOW_REC *window,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* completing filename parameter for /DCC SEND */
|
/* completing filename parameter for /DCC SEND */
|
||||||
*list = filename_complete(word, NULL);
|
path = convert_home(settings_get_str("dcc_upload_path"));
|
||||||
|
*list = filename_complete(word, path);
|
||||||
|
g_free(path);
|
||||||
|
|
||||||
if (*list != NULL) {
|
if (*list != NULL) {
|
||||||
*want_space = FALSE;
|
*want_space = FALSE;
|
||||||
signal_stop();
|
signal_stop();
|
||||||
|
Loading…
Reference in New Issue
Block a user