readline: fix tab completion bug
authorMatt Harrison <hi@matt-harrison.com>
Fri, 11 Sep 2015 14:47:41 +0000 (15:47 +0100)
committerJeremiah Senkpiel <fishrock123@rocketmail.com>
Sun, 20 Sep 2015 17:31:26 +0000 (10:31 -0700)
commitd4cd5ac40796d2ab8bd70ee43ccbc96d21daed10
tree2dfb7d010eb123d616e466fb32a513a406e3d597
parentd63e02e08dd4217a9e6cdf611e42438b31b0d1be
readline: fix tab completion bug

This fixes a problem where tab completion is empty when the input
stream column size is undefined. As a solution we can force maxColumns
to 1 in this scenario.

PR-URL: https://github.com/nodejs/node/pull/2816
Fixes: https://github.com/nodejs/node/issues/2396
Reviewed-By: Roman Reiss <me@silverwind.io>
lib/readline.js
test/parallel/test-readline-undefined-columns.js [new file with mode: 0644]