Closed
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues, especially the pinned issues.
Exception report
Last 115 Keys:
c d Space " c : \ U s e r s \ a c e r \ D e s k t o p \ C o d i n g \ . v s c o d e \ S T L \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space m u l t i s e t . c p p Space - o Space m u l
t i s e t Space } Space ; Space i f Space ( $ ? ) Space { Space . \ m u l t i s e t Space } Enter
Exception:
Parameter name: left
Actual value was -2.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Screenshot
If you can help?
Environment data
PS Version: 5.1.19041.5607
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 201
BufferHeight: 42
Steps to reproduce
#include<bits/stdc++.h>
using namespace std;
int main(){
multisets;
// same as set just allow duplicate element to stores
s.insert(1);
s.insert(1);;
for(auto it:s){
cout<<it<<" ";
}
return 0;
}
Expected behavior
no exception
Actual behavior
no exception just the above bug is showing with output
Metadata
Metadata
Assignees
Labels
No labels