Skip to content

Commit

Permalink
Combine old options with new ones rather than replace new ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed May 9, 2020
1 parent 194c7f2 commit ea69e81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/src/input/tex/extensions/rename.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {combineConfig} from '../../../../../js/components/global.js';

//
// Look for a package name in the package list and change it to a new name
// rhen rename tex options for it, if there are any.
Expand All @@ -9,7 +11,7 @@ export function rename(oname, nname, options) {
const n = packages.indexOf(oname);
if (n >= 0) packages[n] = nname;
if (options && tex[oname]) {
tex[nname] = tex[oname];
combineConfig(tex, {[nname]: tex[oname]});
delete tex[oname];
}
}
Expand Down

0 comments on commit ea69e81

Please sign in to comment.