mirror of
https://github.com/kanaka/mal.git
synced 2024-09-19 09:38:28 +03:00
js: fix readline with blank prompt.
This commit is contained in:
parent
865b628fb9
commit
67136d8c41
@ -16,7 +16,7 @@ var rllib = ffi.Library(RL_LIB, {
|
||||
var rl_history_loaded = false;
|
||||
|
||||
exports.readline = rlwrap.readline = function(prompt) {
|
||||
prompt = prompt || "user> ";
|
||||
prompt = typeof prompt !== 'undefined' ? prompt : "user> ";
|
||||
|
||||
if (!rl_history_loaded) {
|
||||
rl_history_loaded = true;
|
||||
|
Loading…
Reference in New Issue
Block a user