X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c696287bba831e76846d1db316c7ce3158577fda..35b4fdadc4ac4c78b0d8fb3c604e3e25ed59b157:/test/toc-autofit.vader?ds=sidebyside diff --git a/test/toc-autofit.vader b/test/toc-autofit.vader index 166cc81..2678997 100644 --- a/test/toc-autofit.vader +++ b/test/toc-autofit.vader @@ -43,10 +43,11 @@ 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 + set nonumber " 2 spaces * 5 additional header levels + 1 space for first header + " 3 spaces for line numbers - 7 chars ('###### ') that don't show up on the TOC