mirror of
https://github.com/jarun/nnn.git
synced 2025-01-11 18:39:42 +00:00
Fix #315
This commit is contained in:
parent
8c2c7e9e97
commit
26e18ab382
|
@ -278,6 +278,7 @@ static int ndents, cur, curscroll, total_dents = ENTRY_INCR;
|
||||||
static int xlines, xcols;
|
static int xlines, xcols;
|
||||||
static uint idle;
|
static uint idle;
|
||||||
static uint idletimeout, copybufpos, copybuflen;
|
static uint idletimeout, copybufpos, copybuflen;
|
||||||
|
static char *bmstr;
|
||||||
static char *opener;
|
static char *opener;
|
||||||
static char *copier;
|
static char *copier;
|
||||||
static char *editor;
|
static char *editor;
|
||||||
|
@ -2073,7 +2074,8 @@ static int xlink(char *suffix, char *path, char *buf, int *presel, int type)
|
||||||
static bool parsebmstr(void)
|
static bool parsebmstr(void)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
char *bms = getenv(env_cfg[NNN_BMS]);
|
bmstr = strdup(getenv(env_cfg[NNN_BMS]));
|
||||||
|
char *bms = bmstr;
|
||||||
char *nextkey = bms;
|
char *nextkey = bms;
|
||||||
|
|
||||||
if (!bms || !*bms)
|
if (!bms || !*bms)
|
||||||
|
@ -4619,6 +4621,7 @@ static void cleanup(void)
|
||||||
free(plugindir);
|
free(plugindir);
|
||||||
free(cfgdir);
|
free(cfgdir);
|
||||||
free(initpath);
|
free(initpath);
|
||||||
|
free(bmstr);
|
||||||
|
|
||||||
#ifdef DBGMODE
|
#ifdef DBGMODE
|
||||||
disabledbg();
|
disabledbg();
|
||||||
|
|
Loading…
Reference in a new issue