Skip to content

fix(editor)!: undo requires two presses after copy#956

Merged
fdncred merged 1 commit intonushell:mainfrom
Juhan280:fix/undo-copy
Mar 12, 2026
Merged

fix(editor)!: undo requires two presses after copy#956
fdncred merged 1 commit intonushell:mainfrom
Juhan280:fix/undo-copy

Conversation

@Juhan280
Copy link
Copy Markdown
Contributor

@Juhan280 Juhan280 commented Oct 1, 2025

Previously all copy commands created redundant undo point, this commit resolves this by not creating an undo point when EditType is NoOp

fixes #955

@Juhan280 Juhan280 force-pushed the fix/undo-copy branch 2 times, most recently from a48fc93 to 8455336 Compare October 6, 2025 12:21
@Juhan280 Juhan280 changed the title fix(editor): undo requires two presses after copy fix(editor)!: undo requires two presses after copy Oct 7, 2025
Previously all copy commands created redundant undo point, this commit
resolves this by not creating an undo point when EditType is NoOp
@fdncred fdncred merged commit a666308 into nushell:main Mar 12, 2026
6 checks passed
@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Mar 12, 2026

Thanks!

@Juhan280 Juhan280 deleted the fix/undo-copy branch March 12, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Copying any text creates an unnecessary undo point

2 participants