diff --git a/ChangeLog b/ChangeLog index 59ee869e..3dd83eb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7106,7 +7106,7 @@ with clicks on files. - Removed allowed from cache property in config. - Added ability to hide "Upload To" menu item if -no storage modules setted up in modules.json. +no storage modules set up in modules.json. - From now any file minifying only if last modified time was changed. @@ -7312,7 +7312,7 @@ in any position in anyLoadOnLoad function. - Added chainable to Cache object in DOM. - Changed default ip to null so IP would be geted from -config.json only if it setted up. +config.json only if it set up. - Fixed bug with starting node from other then projects dir. @@ -7621,7 +7621,7 @@ time was possible. - Fixed bug with undefined size on root directory of Cloud Commander. Now Cloud Commander writes size 0, if can't get size, and besides will -setted b char: "0b". +set b char: "0b". - Added supporting of Russian language in directory names. diff --git a/client/key/index.mjs b/client/key/index.mjs index a62d6929..587ba7d9 100644 --- a/client/key/index.mjs +++ b/client/key/index.mjs @@ -5,7 +5,7 @@ import * as Events from '#dom/events'; import * as Buffer from '../dom/buffer.mjs'; import * as KEY from './key.mjs'; import _vim from './vim/index.js'; -import setCurrentByChar from './set-current-by-char.js'; +import setCurrentByChar from './set-current-by-char.mjs'; import {createBinder} from './binder.mjs'; const Chars = fullstore(); diff --git a/client/key/set-current-by-char.js b/client/key/set-current-by-char.mjs similarity index 84% rename from client/key/set-current-by-char.js rename to client/key/set-current-by-char.mjs index ab9329f3..b80d9bae 100644 --- a/client/key/set-current-by-char.js +++ b/client/key/set-current-by-char.mjs @@ -1,14 +1,11 @@ /* global DOM */ +import {escapeRegExp} from '../../common/util.js'; -'use strict'; - -const {escapeRegExp} = require('../../common/util'); - -module.exports = function setCurrentByChar(char, charStore) { +export default function setCurrentByChar(char, charStore) { const Info = DOM.CurrentInfo; let firstByName; let skipCount = 0; - let setted = false; + let set = false; let i = 0; const escapeChar = escapeRegExp(char); @@ -36,7 +33,7 @@ module.exports = function setCurrentByChar(char, charStore) { const byName = DOM.getCurrentByName(name); if (!skipCount) { - setted = true; + set = true; DOM.setCurrentFile(byName); return true; @@ -53,8 +50,8 @@ module.exports = function setCurrentByChar(char, charStore) { .filter(not(isRoot)) .some(setCurrent); - if (!setted) { + if (!set) { DOM.setCurrentFile(firstByName); charStore([char]); } -}; +}