Skip to content

Commit

Permalink
add autocomplete_prefixsize=0 as default config (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
e9gille authored May 5, 2021
1 parent e1999db commit 2cf558d
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions src/cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,20 @@
}
case 'start': {
D.spawned = 1;
const env = {};
const envusr = {};
const a = (x.env || '').split('\n');
for (let i = 0; i < a.length; i++) {
const [, k, v] = KV.exec(a[i]) || [];
k && (env[k] = v);
k && (envusr[k] = v);
}
const env = {
...envusr,
APLK0: 'default',
AUTOCOMPLETE_PREFIXSIZE: 0,
CLASSICMODE: 1,
SINGLETRACE: 1,
RIDE_SPAWNED: '1',
};
if (x.subtype === 'ssh') {
D.util.dlg(q.connecting_dlg, { modal: true });
const o = {
Expand All @@ -502,7 +510,7 @@
Object.keys(env).forEach((k) => { s0 += `${k}=${shEsc(env[k])} `; });
const args = x.args ? x.args.replace(/\n$/gm, '').split('\n') : [];
const s1 = dyalogArgs(args).map(shEsc).join(' ');
sm.write(`${s0}CLASSICMODE=1 SINGLETRACE=1 RIDE_INIT=CONNECT:127.0.0.1:${rport} RIDE_SPAWNED=1 ${shEsc(x.exe)} ${s1} +s -q -nokbd >/dev/null\n`);
sm.write(`${s0}RIDE_INIT=CONNECT:127.0.0.1:${rport} ${shEsc(x.exe)} ${s1} +s -q -nokbd >/dev/null\n`);
hideDlgs();
});
});
Expand Down Expand Up @@ -545,16 +553,11 @@
...(!!x.cwd && { cwd: untildify(x.cwd) }),
stdio,
detached: true,
env: $.extend(
{}, process.env, env,
{
CLASSICMODE: 1,
SINGLETRACE: 1,
RIDE_INIT: `CONNECT:${hp}`,
RIDE_SPAWNED: '1',
APLK0: 'default',
},
),
env: {
...process.env,
...env,
RIDE_INIT: `CONNECT:${hp}`,
},
});
} catch (e) { err(e); return; }
D.lastSpawnedExe = x.exe;
Expand Down

0 comments on commit 2cf558d

Please sign in to comment.