Skip to content

Commit 49981dc

Browse files
committed
Add some debug logging, TODO: remove
1 parent 0b9a2d6 commit 49981dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cursor-doc/paredit.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1230,10 +1230,13 @@ export async function dragSexprBackward(
12301230
const cursor = doc.getTokenCursor(right);
12311231
const usePairs = isInPairsList(cursor, pairForms);
12321232
const currentRange = currentSexpsRange(doc, cursor, right, usePairs);
1233+
console.log('BOOM! currentRange', currentRange);
12331234
const newPosOffset = right - currentRange[0];
12341235
const backCursor = doc.getTokenCursor(currentRange[0]);
12351236
backCursor.backwardSexp();
1237+
console.log('BOOM! backCursor', backCursor);
12361238
const backRange = currentSexpsRange(doc, backCursor, backCursor.offsetStart, usePairs);
1239+
console.log('BOOM! backRange', backRange);
12371240
if (backRange[0] !== currentRange[0]) {
12381241
// there is a sexp to the left
12391242
const leftText = doc.model.getText(backRange[0], backRange[1]);

0 commit comments

Comments
 (0)