Hello, I am not sure if it is a bug, but it always make me confuses:

here is a exmaple:

func Test()
  let c = 'sss'
  let a = 1
  let b = 2
  echo c[a:b]
endf

then call Test(), you will get error, Undefined variable: a:b

of cause this can be avoided by changing the last line to echo c[a : b]


________________________________
--
Best regards,
wsdjeg

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/SG2PR03MB489309927D7094DEBDC7FF3FD48D0%40SG2PR03MB4893.apcprd03.prod.outlook.com.

Reply via email to