File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src-web/components/core/Editor Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 4747 " !src-web/vite.config.ts" ,
4848 " !src-web/routeTree.gen.ts" ,
4949 " !packages/plugin-runtime-types/lib" ,
50- " !**/bindings"
50+ " !**/bindings" ,
51+ " !flatpak"
5152 ]
5253 }
5354}
Original file line number Diff line number Diff line change @@ -51,9 +51,10 @@ export function searchMatchCount(): Extension {
5151 let currentIndex = 0 ;
5252 const MAX_COUNT = 9999 ;
5353 const cursor = query . getCursor ( state ) ;
54- while ( ! cursor . next ( ) . done ) {
54+ for ( let result = cursor . next ( ) ; ! result . done ; result = cursor . next ( ) ) {
5555 count ++ ;
56- if ( cursor . value . from <= selection . from && cursor . value . to >= selection . to ) {
56+ const match = result . value ;
57+ if ( match . from <= selection . from && match . to >= selection . to ) {
5758 currentIndex = count ;
5859 }
5960 if ( count > MAX_COUNT ) break ;
You can’t perform that action at this time.
0 commit comments