syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

evil-search-forward glitch in web-mode #5447

Closed Evidlo closed 4 years ago

Evidlo commented 8 years ago

Description

In web-mode, evil-search-forward (/) gives strange behavior when searching for content inside a fold.

Reproduction guide

html file

foo
<div class="fold this div">
  search me
</div>
bar

Observed behaviour: It appears that once evil finds the string search me, spacemacs stops responding until I hit ctrl G a few times.

Expected behaviour: It should be able to search for the string within a fold without freezing (preferably opening the fold automatically).

System Info

(better-defaults c-c   django emacs-lisp gtags go html
                 (git :variables git-gutter-use-fringe t)
                 markdown org python shell syntax-checking yaml)

Backtrace

BACKTRACE IF RELEVANT
StreakyCobra commented 8 years ago

For me it seems to be an upstream bug, but for now I can't even try to reproduce this on stock emacs because the folding of web-mode isn't working.

kdelwat commented 7 years ago

I was able to reproduce this on the latest version, so it's definitely still a problem.

System Info :computer:

((auto-completion :variables auto-completion-enable-snippets-in-popup t auto-completion-enable-help-tooltip t)
 (clojure :variables clojure-enable-fancify-symbols t cider-font-lock-dynamically
          '(macro core deprecated function)
          cljr-suppress-middleware-warnings t)
 emacs-lisp git html javascript markdown org python
 (shell :variables shell-default-height 30 shell-default-position 'bottom)
 (spell-checking :variables spell-checking-enable-by-default nil)
 syntax-checking themes-megapack
 (version-control :variables version-control-diff-tool 'diff-hl version-control-global-margin t))
github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!