Skip to content

Commit 542d4ec

Browse files
committed
Continue gh-957
1 parent 14ecbc4 commit 542d4ec

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

far/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
--------------------------------------------------------------------------------
2+
drkns 2025-05-27 17:18:29+01:00 - build 6484
3+
4+
1. Continue gh-957.
5+
16
--------------------------------------------------------------------------------
27
drkns 2025-05-26 22:19:53+01:00 - build 6483
38

far/plugapi.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,11 +1280,15 @@ intptr_t WINAPI apiPanelControl(HANDLE hPlugin,FILE_CONTROL_COMMANDS Command,int
12801280
if (Command == FCTL_GETUSERSCREEN)
12811281
{
12821282
if (!UserScreenInvocations++)
1283+
{
12831284
Global->WindowManager->Desktop()->ConsoleSession().activate({}, !Param1);
1285+
console.start_prompt();
1286+
console.start_command();
1287+
console.start_output();
1288+
}
1289+
else
1290+
Global->WindowManager->Desktop()->ConsoleSession().snap(!Param1);
12841291

1285-
console.start_prompt();
1286-
console.start_command();
1287-
console.start_output();
12881292
return TRUE;
12891293
}
12901294

@@ -1297,12 +1301,13 @@ intptr_t WINAPI apiPanelControl(HANDLE hPlugin,FILE_CONTROL_COMMANDS Command,int
12971301
return TRUE;
12981302
}
12991303

1300-
console.command_finished();
1301-
13021304
if (!--UserScreenInvocations)
13031305
{
13041306
Global->WindowManager->Desktop()->ConsoleSession().deactivate(!Param1);
1307+
console.command_finished();
13051308
}
1309+
else
1310+
Global->WindowManager->Desktop()->ConsoleSession().snap(!Param1);
13061311

13071312
return TRUE;
13081313
}

far/vbuild.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6483
1+
6484

far/vmenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ namespace
558558
const auto Intersection{ intersect(segment{ 0, segment::length_tag{ static_cast<segment::domain_t>(ItemName.size()) } }, CellSegment) };
559559
if (Intersection.empty()) return {};
560560
return ItemName.substr(Intersection.start(), Intersection.length());
561-
};
561+
}
562562

563563
std::pair<int, int> item_hpos_limits(const int ItemLength, const int TextAreaWidth, const item_hscroll_policy Policy) noexcept
564564
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy