Skip to content

Commit

Permalink
executor: determine appropriate mode for system associations, system.…
Browse files Browse the repository at this point in the history
…executor.batchtype dropped
  • Loading branch information
alabuzhev committed May 18, 2016
1 parent 6def6d7 commit e964988
Show file tree
Hide file tree
Showing 8 changed files with 179 additions and 240 deletions.
8 changes: 7 additions & 1 deletion far/changelog
@@ -1,4 +1,10 @@
zg 18.05.2016 19:37:11 +0200 - build 4678
drkns 19.05.2016 00:40:27 +0200 - build 4679

1. Продолжение экспериментов с запускателем:
- тип запуска (консольный с ожиданием / тихий без ожидания) теперь определяется и для системных ассоциаций тоже.
- System.Executor.BatchType больше нет, всё должно корректно работать автоматически.

zg 18.05.2016 19:37:11 +0200 - build 4678

1. при определённых условиях позиция курсора в текущей строке после ECTL_DELETESTRING была неверной.

Expand Down
6 changes: 0 additions & 6 deletions far/config.cpp
Expand Up @@ -81,8 +81,6 @@ static const wchar_t WordDiv0[] = L"~!%^&*()+|{}:\"<>?`-=\\[];',./";
// Стандартный набор разделителей для функции Xlat
static const wchar_t WordDivForXlat0[] = L" \t!#$%^&*()+|=\\/@?";

static const wchar_t constBatchExt[] = L".BAT;.CMD;";

static const int DefaultTabSize = 8;


Expand Down Expand Up @@ -1889,7 +1887,6 @@ void Options::InitConfigData()
{FSSF_PRIVATE, NKeySystemException,L"Used", OPT_DEF(ExceptUsed, false)},

{FSSF_PRIVATE, NKeySystemExecutor,L"~", OPT_DEF(Exec.strHomeDir, L"%FARHOME%")},
{FSSF_PRIVATE, NKeySystemExecutor,L"BatchType", OPT_DEF(Exec.strExecuteBatchType, constBatchExt)},
{FSSF_PRIVATE, NKeySystemExecutor,L"ExcludeCmds", OPT_DEF(Exec.strExcludeCmds, L"")},
{FSSF_PRIVATE, NKeySystemExecutor,L"FullTitle", OPT_DEF(Exec.ExecuteFullTitle, false)},
{FSSF_PRIVATE, NKeySystemExecutor,L"RestoreCP", OPT_DEF(Exec.RestoreCPAfterExecute, true)},
Expand Down Expand Up @@ -2129,9 +2126,6 @@ void Options::Load(const std::vector<std::pair<string, string>>& Overridden)
Policies.ShowHiddenDrives&=OptPolicies_ShowHiddenDrives;
*/

if (Exec.strExecuteBatchType.empty()) // предохраняемся
Exec.strExecuteBatchType=constBatchExt;

xlat_initialize();

FindOpt.OutColumns.clear();
Expand Down

0 comments on commit e964988

Please sign in to comment.