From 00eacca8a642862e2b188a6fb6fd3b23508b447d Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Fri, 15 Jan 2016 17:59:00 +0900 Subject: [PATCH] Use winwidth(0) instead of &winwidth &winwidth is not real width but option value. --- test/toc-autofit.vader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/toc-autofit.vader b/test/toc-autofit.vader index 166cc81..d35f50a 100644 --- a/test/toc-autofit.vader +++ b/test/toc-autofit.vader @@ -43,7 +43,7 @@ Execute (toc window autofit width): let line = '###### chap 12.1.1.1.1.1' AssertEqual getline('33'), line :Toc - let real_width = &winwidth + let real_width = winwidth(0) :lclose let expected_width = len(line) + 2*5 + 1 + 3 - 7 AssertEqual real_width, expected_width -- 2.39.2