Skip to content

Use effectively unlimited history size if not set#5587

Merged
fdncred merged 1 commit intonushell:mainfrom
sholderbach:fix-5586
May 19, 2022
Merged

Use effectively unlimited history size if not set#5587
fdncred merged 1 commit intonushell:mainfrom
sholderbach:fix-5586

Conversation

@sholderbach
Copy link
Copy Markdown
Member

@sholderbach sholderbach commented May 19, 2022

Fixes #5586

Tests

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --workspace --features=extra -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo test --workspace --features=extra to check that all the tests pass

@sholderbach sholderbach added the A:configuration Issue related to nu's configuration label May 19, 2022
@fdncred fdncred merged commit 8fdc272 into nushell:main May 19, 2022
@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented May 19, 2022

i64:max - would love to see a history that size! lol

sholderbach added a commit to sholderbach/nushell that referenced this pull request May 20, 2022
Fixes nushell#5593

OOM introduced with nushell#5587 when no config was present and an attempt was
made to allocate all memory in advance

Includes also other changes to reedline:
- Vi word definition fixed and `w` and `e` work as expected
@sholderbach sholderbach deleted the fix-5586 branch May 20, 2022 15:26
sholderbach added a commit that referenced this pull request May 20, 2022
Fixes #5593 (OOM introduced with #5587 when no config was present and an attempt was
made to allocate all memory in advance)

Includes also other changes to reedline:

- Vi word definition fixed and `w` and `e` work as expected
fennewald pushed a commit to fennewald/nushell that referenced this pull request Jun 27, 2022
fennewald pushed a commit to fennewald/nushell that referenced this pull request Jun 27, 2022
Fixes nushell#5593 (OOM introduced with nushell#5587 when no config was present and an attempt was
made to allocate all memory in advance)

Includes also other changes to reedline:

- Vi word definition fixed and `w` and `e` work as expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:configuration Issue related to nu's configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not reset history size when config fail to load (+ higher default history size)

2 participants