Skip to content

Call accept_handler before append_to_history in Buffer.validate_and_handle - #800

Merged
jonathanslenders merged 1 commit into
prompt-toolkit:masterfrom
asmeurer:accept_handler-history
Dec 7, 2018
Merged

Call accept_handler before append_to_history in Buffer.validate_and_handle#800
jonathanslenders merged 1 commit into
prompt-toolkit:masterfrom
asmeurer:accept_handler-history

Conversation

@asmeurer

@asmeurer asmeurer commented Dec 6, 2018

Copy link
Copy Markdown
Contributor

This was a regression from 6cfc3f3.

Without this, any changes made to the buffer text in the accept handler are
not reflected in the history. For instance, I call dedent(text).strip() in the
accept handler.

…andle

This was a regression from 6cfc3f3.

Without this, any changes made to the buffer text in the accept handler are
not reflected in the history. For instance, I call dedent(text).strip() in the
accept handler.
@codecov-io

codecov-io commented Dec 6, 2018

Copy link
Copy Markdown

Codecov Report

Merging #800 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #800   +/-   ##
=======================================
  Coverage   70.79%   70.79%           
=======================================
  Files         140      140           
  Lines       13251    13251           
=======================================
  Hits         9381     9381           
  Misses       3870     3870
Impacted Files Coverage Δ
prompt_toolkit/buffer.py 68.83% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3d5579...bd63a18. Read the comment docs.

@jonathanslenders
jonathanslenders merged commit aa44ef7 into prompt-toolkit:master Dec 7, 2018
@jonathanslenders

Copy link
Copy Markdown
Member

Thank you @asmeurer, for creating this pull request! This makes sense.

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.

3 participants