mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
rename caret -> cursor
This commit is contained in:
6
src/effects.js
vendored
6
src/effects.js
vendored
@@ -5,7 +5,7 @@ import {
|
||||
calltree_node_loc,
|
||||
get_deferred_calls
|
||||
} from './calltree.js'
|
||||
import {current_caret_position} from './calltree.js'
|
||||
import {current_cursor_position} from './calltree.js'
|
||||
import {FLAGS} from './feature_flags.js'
|
||||
import {exec, FILES_ROOT} from './index.js'
|
||||
|
||||
@@ -166,8 +166,8 @@ export const render_common_side_effects = (prev, next, command, ui) => {
|
||||
ui.editor.switch_session(next.current_module)
|
||||
}
|
||||
|
||||
if(current_caret_position(next) != ui.editor.get_caret_position()) {
|
||||
ui.editor.set_caret_position(current_caret_position(next))
|
||||
if(current_cursor_position(next) != ui.editor.get_cursor_position()) {
|
||||
ui.editor.set_cursor_position(current_cursor_position(next))
|
||||
}
|
||||
|
||||
if(prev.loading_external_imports_state != next.loading_external_imports_state) {
|
||||
|
||||
Reference in New Issue
Block a user