Skip to content

Commit e351691

Browse files
toyamarinyonbugthesystem
authored andcommitted
Sort the anchor line and active line in ascending order (#70)
Hi @toyamarinyon thanks 👍
1 parent e2994f9 commit e351691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function getSelectedLines(editor) {
148148
var anchorLineIndex = editor.selection.anchor.line + 1;
149149
var activeLineIndex = editor.selection.active.line + 1;
150150

151-
return [anchorLineIndex, activeLineIndex].sort();
151+
return [anchorLineIndex, activeLineIndex].sort(function(a, b) { return a - b });
152152
}
153153

154154
function getGitProviderLinkForRepo(cb) {

0 commit comments

Comments
 (0)