mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 14:12:25 +00:00
minor format fixes
This commit is contained in:
@@ -140,6 +140,7 @@ static void ProcessCompositeInput() {
|
|||||||
#else // unix
|
#else // unix
|
||||||
if (CompositeInput.size() == 2 && memcmp(CompositeInput.data(), std::array<char, 2> { 91, 65 }.data(), 2) == 0) {
|
if (CompositeInput.size() == 2 && memcmp(CompositeInput.data(), std::array<char, 2> { 91, 65 }.data(), 2) == 0) {
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
|
|
||||||
// UP ARROW
|
// UP ARROW
|
||||||
// info(std::to_string(ConsoleHistoryReadIndex));
|
// info(std::to_string(ConsoleHistoryReadIndex));
|
||||||
if (!ConsoleHistory.empty()) {
|
if (!ConsoleHistory.empty()) {
|
||||||
@@ -153,6 +154,7 @@ static void ProcessCompositeInput() {
|
|||||||
#else // unix
|
#else // unix
|
||||||
} else if (CompositeInput.size() == 2 && memcmp(CompositeInput.data(), std::array<char, 2> { 91, 66 }.data(), 2) == 0) {
|
} else if (CompositeInput.size() == 2 && memcmp(CompositeInput.data(), std::array<char, 2> { 91, 66 }.data(), 2) == 0) {
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
|
|
||||||
// DOWN ARROW
|
// DOWN ARROW
|
||||||
if (!ConsoleHistory.empty()) {
|
if (!ConsoleHistory.empty()) {
|
||||||
if (ConsoleHistoryReadIndex != ConsoleHistory.size() - 1) {
|
if (ConsoleHistoryReadIndex != ConsoleHistory.size() - 1) {
|
||||||
@@ -214,6 +216,7 @@ static void ProcessCompositeInput() {
|
|||||||
#else // unix
|
#else // unix
|
||||||
} else if (In == 27) {
|
} else if (In == 27) {
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
|
|
||||||
// escape char, assume stuff follows
|
// escape char, assume stuff follows
|
||||||
CompositeInputExpected = true;
|
CompositeInputExpected = true;
|
||||||
CompositeInput.clear();
|
CompositeInput.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user