[Optimize]: to support using and editing history commands on Linux & macOS#3892
[Optimize]: to support using and editing history commands on Linux & macOS#3892NGDAdmin merged 3 commits intoneo-project:masterfrom
Optimize]: to support using and editing history commands on Linux & macOS#3892Conversation
dc0703b to
f534df0
Compare
|
i have no idea why, but on windows it can get history command since the begining... not on linux. |
|
When i type in command, prompt neo> turns yellow, which is not a correct behavior |
f534df0 to
f7560ec
Compare
Fixed |
8a3d12d to
f34a534
Compare
| var possibleHelp = ""; | ||
| var commandArgs = CommandToken.Parse(commandLine).ToArray(); |
There was a problem hiding this comment.
The variable 'possibleHelp' is declared but never used. If it isn’t serving a future purpose, consider removing it to clean up the code.
| var possibleHelp = ""; | |
| var commandArgs = CommandToken.Parse(commandLine).ToArray(); |
There was a problem hiding this comment.
Is not used?
False Positive
| { | ||
| input.Insert(cursor, key.KeyChar); | ||
| cursor++; | ||
| if (cursor < input.Length) rewrite(); |
There was a problem hiding this comment.
After inserting a character, the call to 'rewrite()' is only executed when the cursor is not at the end of the input; consider calling 'rewrite()' unconditionally to ensure the prompt display is always updated.
| if (cursor < input.Length) rewrite(); | |
| rewrite(); |
f34a534 to
b6ab344
Compare
Optimize]: to support using and editing history commands.Optimize]: to support using and editing history commands in Linux & macOS
Optimize]: to support using and editing history commands in Linux & macOSOptimize]: to support using and editing history commands on Linux & macOS
b6ab344 to
308bca7
Compare
* master: DBFTPlugin: include consensus time into block interval (neo-project#3900) Isolate unit tests (neo-project#3904) Use DateTime.UtcNow (neo-project#3902) Update workflow (neo-project#3901) optimize: show state more readable (neo-project#3899) Optimize KeyedCollectionSlim (neo-project#3877) Native: move MillisecondsPerBlock setting to native Policy (neo-project#3895) optimize: history command support (neo-project#3892) Ensure that view interops can't be changed outside (neo-project#3812)
Co-authored-by: Shargon <shargon@gmail.com> Co-authored-by: NGD Admin <154295625+NGDAdmin@users.noreply.github.com>



Description
Now users can enter and edit command & history commands like a
shellType of change
Checklist: