title: Zsh prompt showing last error code only once
body: <p>I would like my prompt to show a cross (✘) when the previous command fails. I use the following code:</p>
  
  <pre><code>export PROMPT=$'%(?..✘\n)\n› '
  </code></pre>
  
  <p>This gives me the following output:</p>
  
  <pre><code>› echo Hello
  Hello
  
  › asjdfiasdf
  zsh: command not found: asjdfiasdf
  ✘
  
  › 
  ✘
  </code></pre>
  
  <p>I would like to modify the prompt so that it does not repeat the cross when the prompt is redrawn after <kbd>Enter</kbd> (the third case in the example above).</p>
  
  <p>Is it possible?</p>