japanoise / emsys

ersatz-emacs text editor
MIT License
3 stars 2 forks source link

Cute behavior when search term not found #18

Closed japanoise closed 1 year ago

japanoise commented 1 year ago
  1. Open emsys
  2. Make document with two or more lines, e.g. foo\nbar\nbaz
  3. C-s to search
  4. Search a string that is partially but not completely in the document e.g. bazqux
  5. Expected: Nothing is highlighted as there is no match
  6. Actual: The first partial match has the search term written over the top of it

It's a consequence of the slightly lazy way I did #8 (emsys laziness strikes again). Ideal fix p-code:

if match
  current_behavior()
else
  highlight_red(search_term)
fi