Skip to content

Commit

Permalink
Test-18
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Dec 5, 2024
1 parent 298bd56 commit 8752d2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WinPort/src/Backend/TTY/TTYInputSequenceParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void TTYInputSequenceParser::AddStr(WORD vk, DWORD control_keys, const char *fmt
int r = vsnprintf (&tmp[0], sizeof(tmp), fmt, va);
va_end(va);

fprintf(stderr, "TTYInputSequenceParser::AddStr(0x%x, 0x%x, '%s'): '%s' r=%d\n", vk, control_keys, fmt, tmp, r);
//// fprintf(stderr, "TTYInputSequenceParser::AddStr(0x%x, 0x%x, '%s'): '%s' r=%d\n", vk, control_keys, fmt, tmp, r);

TTYInputKey k = {vk, control_keys};
switch (r) {
Expand Down Expand Up @@ -683,7 +683,7 @@ void TTYInputSequenceParser::ParseWinDoubleBuffer(bool idle)
_win32_accumulate = true;
return;
}

if (_win_double_buffer.size() > 2 && _win_double_buffer.back() >= '@' && _win_double_buffer.back() <= '~') {
// end of sequence, whatever is it
_win32_accumulate = false;
Expand Down
8 changes: 8 additions & 0 deletions far/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ static int MainProcess(
int StartLine,
int StartChar)
{
fprintf(stderr, "Entered MainProcess()...\n");

SCOPED_ACTION(InterThreadCallsDispatcherThread);
{
fprintf(stderr, "MainProcess: after InterThreadCallsDispatcherThread...\n");
clock_t cl_start = clock();
SCOPED_ACTION(ChangePriority)(ChangePriority::NORMAL);
ControlObject CtrlObj;
Expand Down Expand Up @@ -258,7 +261,9 @@ static int MainProcess(
}

// теперь все готово - создаем панели!
fprintf(stderr, "MainProcess: about to call CtrlObj.Init()...\n");
CtrlObj.Init();
fprintf(stderr, "MainProcess: CtrlObj.Init() returned\n");

// а теперь "провалимся" в каталог или хост-файл (если получится ;-)
if (!strDestName1.IsEmpty()) // активная панель
Expand Down Expand Up @@ -420,6 +425,8 @@ int FarAppMain(int argc, char **argv)
Opt.Macro.DisableMacro=0;
bool bCustomPlugins = false;

fprintf(stderr, "Parsing command line...\n");

for (int I=1; I<argc; I++)
{
if (strncmp(argv[I], "--", 2) == 0) {
Expand Down Expand Up @@ -652,6 +659,7 @@ int FarAppMain(int argc, char **argv)
if ( Opt.OnlyEditorViewerUsed == Options::ONLY_EDITOR && strEditViewArg.IsEmpty() )
strEditViewArg = Msg::NewFileName;

fprintf(stderr, "About to call MainProcess()...\n");
int Result = MainProcess(strEditViewArg,DestNames[0],DestNames[1],StartLine,StartChar);

EmptyInternalClipboard();
Expand Down

0 comments on commit 8752d2f

Please sign in to comment.