]> code.delx.au - gnu-emacs-elpa/commit
hydra.el (hydra--format): Be non-greedy with width spec
authorOleh Krehel <ohwoeowho@gmail.com>
Thu, 23 Apr 2015 19:48:26 +0000 (21:48 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Thu, 23 Apr 2015 19:48:26 +0000 (21:48 +0200)
commitf472834b22e335dff6c2fd3eef8b3d1cb4e16252
treedf9afb827f3d4ff2f1ed8a1b3c8ce6a5c2a811ce
parentad8def17059776c8edbbdaac38f3cf13ede39563
hydra.el (hydra--format): Be non-greedy with width spec

* hydra.el (hydra--format): Since the key spec is non-greedy, the width
  spec should be non-greedy too.

Otherwise, the following will match more than _1_:
    _1_: h1         _2_: h2

Fixes #117
hydra.el