mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(buffer) try copy and cut ".."
This commit is contained in:
parent
eb4f541400
commit
2bab935044
1 changed files with 9 additions and 7 deletions
|
|
@ -78,11 +78,13 @@
|
|||
|
||||
clear();
|
||||
|
||||
Storage.remove(CUT)
|
||||
.set(COPY, {
|
||||
from : from,
|
||||
names: names
|
||||
});
|
||||
if (names.lenght) {
|
||||
Storage.remove(CUT)
|
||||
.set(COPY, {
|
||||
from : from,
|
||||
names: names
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function cut() {
|
||||
|
|
@ -92,9 +94,9 @@
|
|||
|
||||
clear();
|
||||
|
||||
if (names[0] !== '..') {
|
||||
if (names.lenght) {
|
||||
addCutClass();
|
||||
|
||||
|
||||
Storage
|
||||
.set(CUT, {
|
||||
from : from,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue