Skip to content

Commit 63c71a2

Browse files
Fix typos in commands.js (#1361)
Co-authored-by: 1Code-JS <196545093+1Code-JS@users.noreply.github.com>
1 parent 2ac9f71 commit 63c71a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/commands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,9 @@ export default {
356356
let newUri;
357357
if (uri.startsWith("content://com.termux.documents/tree/")) {
358358
// Special handling for Termux content files
359-
const newFilePath = Url.join(Url.dirname(url), newname);
359+
const newFilePath = Url.join(Url.dirname(uri), newname);
360360
const content = await fs.readFile();
361-
await fsOperation(Url.dirname(url)).createFile(newname, content);
361+
await fsOperation(Url.dirname(uri)).createFile(newname, content);
362362
await fs.delete();
363363
newUrl = newFilePath;
364364
} else {

0 commit comments

Comments
 (0)