Skip to content

Commit 51d2305

Browse files
committed
Support paste treepath
1 parent 7a5af25 commit 51d2305

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/features/repo-editor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ export function initRepoEditor() {
105105
$section.last().remove();
106106
$divider.last().remove();
107107
}
108-
if (e.keyCode === 191) {
109-
parts = $(this).val().split('/');
108+
parts = $(this).val().split('/');
109+
if (e.keyCode === 191 || parts.length > 1) {
110110
for (let i = 0; i < parts.length; ++i) {
111111
value = parts[i];
112112
if (i < parts.length - 1) {

0 commit comments

Comments
 (0)