« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/telchars.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/telchars.js b/util/telchars.js
index 7f4d8e4..6908600 100644
--- a/util/telchars.js
+++ b/util/telchars.js
@@ -6,7 +6,7 @@ const compareBufStr = (buf, str) => {
 
 const telchars = {
   isSpace: buf => buf[0] === 0x20,
-  isEnter: buf => buf[0] === 0x0d && buf[1] === 0x00,
+  isEnter: buf => buf[0] === 0x0d,
   isTab: buf => buf[0] === 0x09,
   isBackTab: buf => buf[0] === 0x1b && buf[2] === 0x5A,
   isBackspace: buf => buf[0] === 0x7F,