Skip to content

Commit b5c5547

Browse files
committed
code formate
1 parent 89c4fa3 commit b5c5547

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Terminal.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {nextTick, ref} from 'vue'
22
import sizeof from 'object-sizeof'
3-
import {_dateFormat, _getByteLen, _html, _isEmpty, _isSafari, _nonEmpty, _sleep, _unHtml} from "./Util.js";
3+
import {_getByteLen, _html, _isEmpty, _isSafari, _nonEmpty, _sleep, _unHtml} from "./Util.js";
44
import historyStore from "./HistoryStore.js";
55
import TerminalObj from './TerminalObj.js';
66
import TerminalFlash from "./TerminalFlash.js";
@@ -748,7 +748,7 @@ export default {
748748
let preWidth = this.inputBoxParam.promptWidth
749749

750750
// 先找到被覆盖字符的位置
751-
for (let i = 0; i<= idx; i++) {
751+
for (let i = 0; i <= idx; i++) {
752752
charWidth = this._calculateStringWidth(command[i])
753753
pos.left += preWidth
754754
preWidth = charWidth
@@ -836,7 +836,6 @@ export default {
836836
}
837837
},
838838
_onInputKeydown(e) {
839-
console.log(this.cmdInput.selectionStart, e)
840839
if (e.key.toLowerCase() === 'arrowleft') {
841840
this._checkInputCursor()
842841
this._cursorGoLeft()

0 commit comments

Comments
 (0)