Skip to content
代码片段 群组 项目
  1. 6月 05, 2021
  2. 6月 04, 2021
  3. 3月 09, 2021
  4. 3月 08, 2021
  5. 6月 06, 2020
  6. 5月 29, 2020
    • Roman Perepelitsa's avatar
      fix a bug in partial acceptance of suggestions · e0b96e1b
      Roman Perepelitsa 创作于
      To reproduce:
      
      1. Run `zsh -f`.
      2. Run this:
        function bye() { BUFFER=bye }
        zle -N bye
        bindkey '^B' bye
        print -s 'hibye unexpected'
        source ~/zsh-autosuggestions/zsh-autosuggestions.zsh
      3. Type `hi` and press Ctrl-B.
      
      Expected: POSTBUFFER is empty.
      
      Actual: POSTBUFFER is " unexpected".
      e0b96e1b
  7. 5月 07, 2020
    • Eric Freese's avatar
      Fix flaky special char specs by not using `with_history` twice per test · 05f22fa8
      Eric Freese 创作于
      There's something funny occasionally happening when `with_history` is
      used twice in the same test. It seems to be happening more frequently
      since asynchronous mode was enabled by default. My guess is it has
      something to do with the `C-c` keys being sent toward the end not
      consistently terminating the prompt. But I'm really not sure how it
      would ever get into a `then` block like it seems to:
      
      ```
      Failure/Error: wait_for { session.content }.to eq('echo "hello\nworld"')
      
        expected: "echo \"hello\\nworld\""
             got: "then> echo \"hello\\"
      ```
      
      Sticking to only one `with_history` per terminal session (per test)
      seems to fix the flakiness.
      
      I also removed an old test case because I could not understand why it
      was necessary and so couldn't write a good description for it. Could be
      we'll need to add it back in at some point.
      05f22fa8
  8. 5月 06, 2020
  9. 1月 30, 2020
  10. 1月 28, 2020
  11. 1月 27, 2020
  12. 1月 25, 2020
  13. 1月 07, 2020
  14. 1月 05, 2020
  15. 12月 15, 2019
  16. 10月 17, 2019
  17. 10月 10, 2019
  18. 10月 01, 2019
加载中