1
1
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:
Joel Martin 2016-03-14 22:23:22 -05:00
parent 865b628fb9
commit 67136d8c41

View File

@ -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;