X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2a7f8fd51e5cd7f5f8e2d6f8e1fb48a6b178098f..8b215aac0192f74b5aeb6ae5a2e1766db2ebecb8:/spec/indent/indent_spec.rb diff --git a/spec/indent/indent_spec.rb b/spec/indent/indent_spec.rb index ebfd103..342b301 100644 --- a/spec/indent/indent_spec.rb +++ b/spec/indent/indent_spec.rb @@ -456,6 +456,16 @@ shared_examples_for "multiline strings" do proposed_indent.should == 4 end end + + describe "when breaking a string after opening parenthesis" do + before { vim.feedkeys 'i foo("""bar' } + it "it does indent the next line as after an opening multistring" do + vim.feedkeys '\' + expected_proposed, expected_indent = multiline_indent(4, 4 + shiftwidth) + indent.should == expected_indent + proposed_indent.should == expected_proposed + end + end end describe "vim when using width of 4" do