Explanation
When using the multi-cursor selection (ALT + SHIFT + LMB) while being horizontally scrolled, the code that is selected is incorrect, instead being to the left of the actual selection.
The video below shows what happens normally (no horizontal scroll) compared to the broken behaviour (horizontal scroll)
Reproduction
- Create a script with lines being longer than the width of the script editing window
- Scroll across any distance in the horizontal direction
- Use LMB to place a cursor in the code.
- Use ALT + SHIFT + LMB to create a selection / to place multiple cursors in a line.
- Observe the wrong code being highlighted.
Code with longer lines for testing
local ShopFrames, CodesFrames, QuestFrames, SettingsFrames, LeaderboardFrames, AchievementsFrames = ..., ..., ..., ..., ...
local function ToggleShop() end
local function ToggleCodes() end
local function ToggleQuest() end
local function ToggleSettings() end
local function ToggleLeaderboards() end
local function ToggleAchievements() end
for _, ShopFrame in ipairs(ShopFrames) do ShopFrame .Close.Activated:Connect(ToggleShop) end print("Filler Text to increase horizontal area")
for _, CodesFrame in ipairs(CodesFrames) do CodesFrame .Close.Activated:Connect(ToggleCodes) end print("Filler Text to increase horizontal area")
for _, QuestFrame in ipairs(QuestFrames) do QuestFrame .Close.Activated:Connect(ToggleQuest) end print("Filler Text to increase horizontal area")
for _, SettingsFrame in ipairs(SettingsFrames) do SettingsFrame .Close.Activated:Connect(ToggleSettings) end print("Filler Text to increase horizontal area")
for _, LeaderboardFrame in ipairs(LeaderboardFrames) do LeaderboardFrame .Close.Activated:Connect(ToggleLeaderboards) end print("Filler Text to increase horizontal area")
for _, AchievementsFrame in ipairs(AchievementsFrames) do AchievementsFrame.Close.Activated:Connect(ToggleAchievements) end print("Filler Text to increase horizontal area")
Device Info
Operating System: Windows 10
CPU: Ryzen 5 3600
GPU: GTX 1650 Super
RAM: 16GB @ 3600MHz