From 0a252c23d904111a92000e7c183584ee21c7d213 Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Thu, 21 Mar 2024 18:48:17 +0800 Subject: [PATCH] lib: fix type error for _refreshLine PR-URL: https://github.com/nodejs/node/pull/52133 Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca --- lib/internal/readline/interface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/readline/interface.js b/lib/internal/readline/interface.js index f8120ca47b2829..e26fa6561e8679 100644 --- a/lib/internal/readline/interface.js +++ b/lib/internal/readline/interface.js @@ -685,7 +685,7 @@ class Interface extends InterfaceConstructor { this.cursor, this.line.length); this.cursor = this.cursor - completeOn.length + prefix.length; - this._refreshLine(); + this[kRefreshLine](); return; }