view runtime/indent/testdir/tcl.ok @ 22822:0b4658e030cb v8.2.1959

patch 8.2.1959: crash when terminal buffer name is made empty Commit: https://github.com/vim/vim/commit/00806bceb6dc9c8dcd308e5f7e50f720f7dc71b0 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 5 19:36:38 2020 +0100 patch 8.2.1959: crash when terminal buffer name is made empty Problem: Crash when terminal buffer name is made empty. (Dhiraj Mishra) Solution: Fall back to "[No Name]". (closes https://github.com/vim/vim/issues/7262)
author Bram Moolenaar <Bram@vim.org>
date Thu, 05 Nov 2020 19:45:04 +0100
parents 8b334e4cb97f
children
line wrap: on
line source

# vim: set filetype=tcl shiftwidth=4 tabstop=8 expandtab :

# START_INDENT
proc abc {} {
    set a 5
    if {[some_cmd]==1} {
        foreach i [list {1 2 3}] {
            # Does this comment affect anything?
            puts $i
        }
    }
}

command_with_a_long_time -arg1 "First" \
    -arg2 "Second" \
    -arg3 "Third"

puts "Move indent back after line continuation is complete"
# END_INDENT