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

Code before:
      					*E1505*
      Various other errors that lead to a format string being
      wrongly formatted lead to: >vim
          echo printf("%1$d at width %2$d is: %01$*2$.3$d", 1, 2)
      <    E1505: Invalid format specifier: %1$d at width %2$d is:
          %01$*2$.3$d

      					*E1507*
      This internal error indicates that the logic to parse a
      positional format argument ran into a problem that couldn't be
      otherwise reported.  Please file a bug against Vim if you run
      into this, copying the exact format string and parameters that
      were used.

    ]=],
    name = 'printf',
    params = { { 'fmt', 'string' }, { 'expr1', 'any' } },
    signature = 'printf({fmt}, {expr1} ...)',
    returns = 'string',
  },
  prompt_getinput = {
    args = 1,
    base = 1,
    desc = [=[
      Returns the current user input to prompt for buffer {buf} without invoking
      prompt_callback. {buf} can be a buffer name or number.  See |prompt-buffer|.

      If the buffer doesn't exist or isn't a prompt buffer, an empty
      string is returned.

    ]=],
    name = 'prompt_getinput',
    params = { { 'buf', 'integer|string' } },
    signature = 'prompt_getinput({buf})',
  },
  prompt_getprompt = {
    args = 1,
    base = 1,
    desc = [=[
      Returns the effective prompt text for buffer {buf}.  {buf} can
      be a buffer name or number.  See |prompt-buffer|.

      If the buffer doesn't exist or isn't a prompt buffer, an empty
      string is returned.

    ]=],
    name = 'prompt_getprompt',
    params = { { 'buf', 'integer|string' } },
    signature = 'prompt_getprompt({buf})',
  },
  prompt_setcallback = {

Review comment (suggestion):
```suggestion
      Gets the current user-input in |prompt-buffer| {buf} without invoking
      prompt_callback. {buf} can be a buffer name or number.
```

Code after:
      					*E1505*
      Various other errors that lead to a format string being
      wrongly formatted lead to: >vim
          echo printf("%1$d at width %2$d is: %01$*2$.3$d", 1, 2)
      <    E1505: Invalid format specifier: %1$d at width %2$d is:
          %01$*2$.3$d

      					*E1507*
      This internal error indicates that the logic to parse a
      positional format argument ran into a problem that couldn't be
      otherwise reported.  Please file a bug against Vim if you run
      into this, copying the exact format string and parameters that
      were used.

    ]=],
    name = 'printf',
    params = { { 'fmt', 'string' }, { 'expr1', 'any' } },
    signature = 'printf({fmt}, {expr1} ...)',
    returns = 'string',
  },
  prompt_getinput = {
    args = 1,
    base = 1,
    desc = [=[
      Gets the current user-input in |prompt-buffer| {buf} without invoking
      prompt_callback. {buf} can be a buffer name or number.

      If the buffer doesn't exist or isn't a prompt buffer, an empty
      string is returned.

    ]=],
    name = 'prompt_getinput',
    params = { { 'buf', 'integer|string' } },
    signature = 'prompt_getinput({buf})',
  },
  prompt_getprompt = {
    args = 1,
    base = 1,
    desc = [=[
      Returns the effective prompt text for buffer {buf}.  {buf} can
      be a buffer name or number.  See |prompt-buffer|.

      If the buffer doesn't exist or isn't a prompt buffer, an empty
      string is returned.

    ]=],
    name = 'prompt_getprompt',
    params = { { 'buf', 'integer|string' } },
    signature = 'prompt_getprompt({buf})',
  },
  prompt_setcallback = {