Re: [vim/vim] patch 8.2.4173: cannot use an import in 'foldexpr' (e70dd11)

3 views
Skip to first unread message

lacygoill

unread,
Jan 21, 2022, 2:42:34 PM1/21/22
to vim/vim, Subscribed

Maybe 'debug' should be reset to its default value at the end of the test (i.e. empty string):

diff --git a/src/testdir/test_vim9_import.vim b/src/testdir/test_vim9_import.vim
index 6ecea56a9..548a36bca 100644
--- a/src/testdir/test_vim9_import.vim
+++ b/src/testdir/test_vim9_import.vim
@@ -706,7 +706,7 @@ def Test_use_autoload_import_in_fold_expression()
   edit! otherfile
   redraw
 
-  set foldexpr= foldmethod&
+  set foldexpr= foldmethod& debug=
   bwipe!
   delete('Xdir', 'rf')
   &rtp = save_rtp


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/commit/e70dd11ef41f69bd5e94f630194e6b3c4f3f2102/64357015@github.com>

Bram Moolenaar

unread,
Jan 21, 2022, 4:46:47 PM1/21/22
to vim/vim, Subscribed


> Maybe `'debug'` should be reset to its default value at the end of the test (i.e. empty string):
> ```diff
> diff --git a/src/testdir/test_vim9_import.vim b/src/testdir/test_vim9_import.vim
> index 6ecea56a9..548a36bca 100644
> --- a/src/testdir/test_vim9_import.vim
> +++ b/src/testdir/test_vim9_import.vim
> @@ -706,7 +706,7 @@ def Test_use_autoload_import_in_fold_expression()
> edit! otherfile
> redraw
>
> - set foldexpr= foldmethod&
> + set foldexpr= foldmethod& debug=
> bwipe!
> delete('Xdir', 'rf')
> &rtp = save_rtp
> ```

Yes, that is better.

--
ARTHUR: Charge!
[They all charge with swords drawn towards the RABBIT. A tremendous twenty
second fight with Peckinpahish shots and borrowing heavily also on the
Kung Fu and karate-type films ensues, in which some four KNIGHTS are
comprehensively killed.]
ARTHUR: Run away! Run away!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- ***@***.*** -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/commit/e70dd11ef41f69bd5e94f630194e6b3c4f3f2102/64363921@github.com>

Reply all
Reply to author
Forward
0 new messages