MCPcopy Index your code
hub / github.com/codeaashu/claude-code / prevStop

Method prevStop

src/server/web/public/terminal.js:4024–4027  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

4022 for (null != e3 ? this.tabs[e3] || (e3 = this.prevStop(e3)) : (this.tabs = {}, e3 = 0); e3 < this._cols; e3 += this._optionsService.rawOptions.tabStopWidth) this.tabs[e3] = true;
4023 }
4024 prevStop(e3) {
4025 for (null == e3 && (e3 = this.x); !this.tabs[--e3] && e3 > 0; ) ;
4026 return e3 >= this._cols ? this._cols - 1 : e3 < 0 ? 0 : e3;
4027 }
4028 nextStop(e3) {
4029 for (null == e3 && (e3 = this.x); !this.tabs[++e3] && e3 < this._cols; ) ;
4030 return e3 >= this._cols ? this._cols - 1 : e3 < 0 ? 0 : e3;

Callers 2

cursorBackwardTabMethod · 0.80
setupTabStopsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected