| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 01fd3be commit 0999d53
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,7 +141,7 @@ function setupPreview(repl, contextSymbol, bufferSymbol, active) { | |||
| 141 | 141 | ||
| 142 | 142 | function getPreviewPos() { | |
| 143 | 143 | const displayPos = repl._getDisplayPos(`${repl._prompt}${repl.line}`); | |
| 144 | - const cursorPos = repl._getCursorPos(); | ||
| 144 | + const cursorPos = repl.getCursorPos(); | ||
| 145 | 145 | const rows = 1 + displayPos.rows - cursorPos.rows; | |
| 146 | 146 | return { rows, cols: cursorPos.cols }; | |
| 147 | 147 | } | |
@@ -528,7 +528,7 @@ function setupReverseSearch(repl) { | |||
| 528 | 528 | rows = repl._getDisplayPos(`${repl._prompt}${line}`).rows; | |
| 529 | 529 | cursorTo(repl.output, promptPos.cols); | |
| 530 | 530 | } else if (isInReverseSearch && repl.line !== '') { | |
| 531 | - rows = repl._getCursorPos().rows; | ||
| 531 | + rows = repl.getCursorPos().rows; | ||
| 532 | 532 | cursorTo(repl.output, promptPos.cols); | |
| 533 | 533 | } | |
| 534 | 534 | if (rows !== 0) | |
@@ -580,7 +580,7 @@ function setupReverseSearch(repl) { | |||
| 580 | 580 | if (repl.line !== '') { | |
| 581 | 581 | repl.output.write(repl.line); | |
| 582 | 582 | if (repl.line.length !== repl.cursor) { | |
| 583 | - const { cols, rows } = repl._getCursorPos(); | ||
| 583 | + const { cols, rows } = repl.getCursorPos(); | ||
| 584 | 584 | cursorTo(repl.output, cols); | |
| 585 | 585 | if (rows !== 0) | |
| 586 | 586 | moveCursor(repl.output, 0, rows); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments