File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
kotlin/com/harsh/jumpinglines/jumps Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ class JumpBackwardLines : DumbAwareAction() {
33
33
)
34
34
35
35
// Calculate the new caret position
36
- val currentLineNumber : Int = document.getLineNumber(targetOffset)
36
+ val targetLineNumber : Int = document.getLineNumber(targetOffset)
37
37
val currentColumn = caretModel.logicalPosition.column
38
38
39
39
caretModel.moveToOffset(targetOffset)
40
40
41
41
// Scrolling editor along with the cursor
42
- val newPosition = LogicalPosition (currentLineNumber , currentColumn)
42
+ val newPosition = LogicalPosition (targetLineNumber , currentColumn)
43
43
caretModel.moveToLogicalPosition(newPosition)
44
44
45
45
// Remove selection blocks before jumping
Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ class JumpForwardLines : DumbAwareAction() {
34
34
)
35
35
36
36
// Calculate the new caret position
37
- val currentLineNumber : Int = document.getLineNumber(targetOffset)
37
+ val targetLineNumber : Int = document.getLineNumber(targetOffset)
38
38
val currentColumn = caretModel.logicalPosition.column
39
39
40
40
caretModel.moveToOffset(targetOffset)
41
41
42
42
// Scrolling editor along with the cursor
43
- val newPosition = LogicalPosition (currentLineNumber , currentColumn)
43
+ val newPosition = LogicalPosition (targetLineNumber , currentColumn)
44
44
caretModel.moveToLogicalPosition(newPosition)
45
45
46
46
// Remove selection blocks before jumping
Original file line number Diff line number Diff line change 78
78
79
79
<b>1.8 (2024-07-05)</b><br/>
80
80
+++++++++++++++<br/>
81
- Cursor can jump over folded blocks.
82
- Fixed behaviour of Jump on Middle action.
81
+ Cursor can jump over folded blocks.<br/>
82
+ Fixed behaviour of Jump on Middle action.<br/>
83
83
Jumping is allowed while indexing.<br/><br/>
84
84
85
85
<b>1.7 (2024-04-14)</b><br/>
86
86
+++++++++++++++<br/>
87
- Prevented Jumping on Find dialog and Replace dialog.
87
+ Prevented Jumping on Find dialog and Replace dialog.<br/>
88
88
Showing Information Notification if the "Jumping" is attempted outside the editor.<br/><br/>
89
89
90
90
<b>1.6.1 (2024-03-20)</b><br/>
127
127
128
128
]]>
129
129
</change-notes >
130
+
130
131
</idea-plugin >
You can’t perform that action at this time.
0 commit comments