view src/testdir/test_smartindent.vim @ 10881:8f6df2f6d2fc v8.0.0330

patch 8.0.0330: illegal memory access after "vapo" commit https://github.com/vim/vim/commit/84b2a381451e9068b09ef6d85f5e8cf1598e7355 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 17 11:40:00 2017 +0100 patch 8.0.0330: illegal memory access after "vapo" Problem: Illegal memory access after "vapo". (Dominique Pelle) Solution: Fix the cursor column.
author Christian Brabandt <cb@256bit.org>
date Fri, 17 Feb 2017 11:45:04 +0100
parents eb9a7296ae9f
children 268b1036cd17
line wrap: on
line source


" Tests for not doing smart indenting when it isn't set.
function! Test_nosmartindent()
  new
  call append(0, ["		some test text",
      	\ "		test text",
      	\ "test text",
      	\ "		test text"])
  set nocindent nosmartindent autoindent
  exe "normal! gg/some\<CR>"
  exe "normal! 2cc#test\<Esc>"
  call assert_equal("		#test", getline(1))
  enew! | close
endfunction