Repository: neovim/neovim
File: src/nvim/eval.lua (Lua)

Code before:
      	getcursorcharpos()	" returns [0, 3, 2, 0, 3]
      	getcurpos()		" returns [0, 3, 4, 0, 3]
      <
    ]=],
    name = 'getcursorcharpos',
    params = { { 'winid', 'integer' } },
    signature = 'getcursorcharpos([{winid}])',
  },
  getcwd = {
    args = { 0, 2 },
    base = 1,
    desc = [=[
      With no arguments, returns the name of the effective
      |current-directory|. With {winnr} or {tabnr} the working
      directory of that scope is returned, and 'autochdir' is
      ignored. Tabs and windows are identified by their respective
      numbers, 0 means current tab or window. Missing tab number
      implies 0. Thus the following are equivalent: >vim
      	getcwd(0)
      	getcwd(0, 0)
      <If {winnr} is -1 it is ignored, only the tab is resolved.
      {winnr} can be the window number or the |window-ID|.
      If both {winnr} and {tabnr} are -1 the global working
      directory is returned.
      Note: When {tabnr} is -1 Vim returns an empty string to
      singal that it is invalid, whereas Nvim returns either the
      global working directory if {winnr} is -1 or the working
      directory of the window indicated by {winnr}.
      Throw error if the arguments are invalid. |E5000| |E5001| |E5002|

    ]=],
    name = 'getcwd',
    params = { { 'winnr', 'integer' }, { 'tabnr', 'integer' } },
    returns = 'string',
    signature = 'getcwd([{winnr} [, {tabnr}]])',
  },
  getenv = {
    args = 1,
    base = 1,
    desc = [=[
      Return the value of environment variable {name}.  The {name}
      argument is a string, without a leading '$'.  Example: >vim
      	myHome = getenv('HOME')

      <When the variable does not exist |v:null| is returned.  That
      is different from a variable set to an empty string.
      See also |expr-env|.

    ]=],
    name = 'getenv',
    params = { { 'name', 'string' } },

Review comment (suggestion):
```suggestion
      signal that it is invalid, whereas Nvim returns either the
```

Code after:
      	getcursorcharpos()	" returns [0, 3, 2, 0, 3]
      	getcurpos()		" returns [0, 3, 4, 0, 3]
      <
    ]=],
    name = 'getcursorcharpos',
    params = { { 'winid', 'integer' } },
    signature = 'getcursorcharpos([{winid}])',
  },
  getcwd = {
    args = { 0, 2 },
    base = 1,
    desc = [=[
      With no arguments, returns the name of the effective
      |current-directory|. With {winnr} or {tabnr} the working
      directory of that scope is returned, and 'autochdir' is
      ignored. Tabs and windows are identified by their respective
      numbers, 0 means current tab or window. Missing tab number
      implies 0. Thus the following are equivalent: >vim
      	getcwd(0)
      	getcwd(0, 0)
      <If {winnr} is -1 it is ignored, only the tab is resolved.
      {winnr} can be the window number or the |window-ID|.
      If both {winnr} and {tabnr} are -1 the global working
      directory is returned.
      Note: When {tabnr} is -1 Vim returns an empty string to
      signal that it is invalid, whereas Nvim returns either the
      global working directory if {winnr} is -1 or the working
      directory of the window indicated by {winnr}.
      Throw error if the arguments are invalid. |E5000| |E5001| |E5002|

    ]=],
    name = 'getcwd',
    params = { { 'winnr', 'integer' }, { 'tabnr', 'integer' } },
    returns = 'string',
    signature = 'getcwd([{winnr} [, {tabnr}]])',
  },
  getenv = {
    args = 1,
    base = 1,
    desc = [=[
      Return the value of environment variable {name}.  The {name}
      argument is a string, without a leading '$'.  Example: >vim
      	myHome = getenv('HOME')

      <When the variable does not exist |v:null| is returned.  That
      is different from a variable set to an empty string.
      See also |expr-env|.

    ]=],
    name = 'getenv',
    params = { { 'name', 'string' } },