Skip to content

Commit

Permalink
fix elfmz#2410, Strange behavior for NumEnter (screen redraw issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
spnethw committed Oct 11, 2024
1 parent 0b7aba4 commit 25d5559
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions far2l/src/console/scrbuf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,12 @@ class ScreenBuf
};

extern ScreenBuf ScrBuf;

class UnlockScreen
{
private:
int Count;
public:
UnlockScreen() : Count(ScrBuf.GetLockCount()) { ScrBuf.Unlock(); }
~UnlockScreen() { ScrBuf.SetLockCount(Count); }
};
1 change: 1 addition & 0 deletions far2l/src/execute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ static int farExecuteASynched(const char *CmdStr, unsigned int ExecFlags)
}

} else {
UnlockScreen Unlock;
FarExecuteScope fes((ExecFlags & EF_NOCMDPRINT) ? "" : CmdStr);
r = VTShell_Execute(CmdStr, (ExecFlags & EF_SUDO) != 0, (ExecFlags & EF_MAYBGND) != 0, may_notify);
}
Expand Down

0 comments on commit 25d5559

Please sign in to comment.