MCPcopy Index your code
hub / github.com/beanshell/beanshell / setCaretPosition

Method setCaretPosition

src/bsh/util/AWTConsole.java:213–215  ·  view source on GitHub ↗
( int pos )

Source from the content-addressed store, hash-verified

211 Here's the really disguisting hack.
212 */
213 public synchronized void setCaretPosition( int pos ) {
214 super.setCaretPosition( pos + countNLs() );
215 }
216
217 /*
218 This is part of a hack to fix the setCaretPosition() bug

Callers 5

enterMethod · 0.95
typeMethod · 0.80
forceCaretMoveToEndMethod · 0.80
showHistoryLineMethod · 0.80
runMethod · 0.80

Calls 1

countNLsMethod · 0.95

Tested by

no test coverage detected