Skip to content

Commit

Permalink
Fixed copyObject crashing when copying library
Browse files Browse the repository at this point in the history
Signed-off-by: Seb Julliand <sjulliand@arcadsoftware.com>
  • Loading branch information
sebjulliand committed Oct 3, 2023
1 parent 92599b1 commit 4f810d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/objectBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ export function initializeObjectBrowser(context: vscode.ExtensionContext) {
try {
newPathOK = true;
await connection.remoteCommand(
node.object.type === `LIB` ?
node.object.type.toLocaleLowerCase() === `*lib` ?
`CPYLIB FROMLIB(${oldObject}) TOLIB(${newObject})` :
`CRTDUPOBJ OBJ(${oldObject}) FROMLIB(${oldLibrary}) OBJTYPE(${node.object.type}) TOLIB(${newLibrary}) NEWOBJ(${newObject})`
);
Expand Down

0 comments on commit 4f810d8

Please sign in to comment.