| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -147,7 +147,6 @@ function setupPreview(repl, contextSymbol, bufferSymbol, active) { | |||
| 147 | 147 | } | |
| 148 | 148 | ||
| 149 | 149 | let inputPreview = null; | |
| 150 | - let lastInputPreview = ''; | ||
| 151 | 150 | ||
| 152 | 151 | let previewCompletionCounter = 0; | |
| 153 | 152 | let completionPreview = null; | |
@@ -179,7 +178,6 @@ function setupPreview(repl, contextSymbol, bufferSymbol, active) { | |||
| 179 | 178 | moveCursor(repl.output, 0, rows); | |
| 180 | 179 | clearLine(repl.output); | |
| 181 | 180 | moveCursor(repl.output, 0, -rows); | |
| 182 | - lastInputPreview = inputPreview; | ||
| 183 | 181 | inputPreview = null; | |
| 184 | 182 | } | |
| 185 | 183 | if (completionPreview !== null) { | |
@@ -396,9 +394,8 @@ function setupPreview(repl, contextSymbol, bufferSymbol, active) { | |||
| 396 | 394 | ||
| 397 | 395 | wrapped = false; | |
| 398 | 396 | ||
| 399 | - // Ignore the output if the value is identical to the current line and the | ||
| 400 | - // former preview is not identical to this preview. | ||
| 401 | - if (line === inspected && lastInputPreview !== inspected) { | ||
| 397 | + // Ignore the output if the value is identical to the current line. | ||
| 398 | + if (line === inspected) { | ||
| 402 | 399 | return; | |
| 403 | 400 | } | |
| 404 | 401 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -238,8 +238,7 @@ const tests = [ | |||
| 238 | 238 | '2\n', | |
| 239 | 239 | '\x1B[1G', '\x1B[0J', | |
| 240 | 240 | prompt, '\x1B[3G', | |
| 241 | - '2', '\n// 2', '\x1B[4G', '\x1B[1A', | ||
| 242 | - '\x1B[1B', '\x1B[2K', '\x1B[1A', | ||
| 241 | + '2', | ||
| 243 | 242 | '\nbck-i-search: _', '\x1B[1A', '\x1B[4G', | |
| 244 | 243 | '\x1B[3G', '\x1B[0J', | |
| 245 | 244 | 'Array(100).fill(1)\nbck-i-search: r_', '\x1B[1A', '\x1B[5G', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments