[Commits] [wesnoth/wesnoth] 200b57: Improve Lua console tab completion

GitHub noreply at github.com
Wed Oct 19 03:03:49 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 200b57e72190f6aadd668c8ea97af8692335b70c
      https://github.com/wesnoth/wesnoth/commit/200b57e72190f6aadd668c8ea97af8692335b70c
  Author: Celtic Minstrel <celtic.minstrel.ca at gmail.com>
  Date:   2016-10-18 (Tue, 18 Oct 2016)

  Changed paths:
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Improve Lua console tab completion
(Also some minor code cleanup in another function)

The two main improvements from this commit are:
- Tab completion can now work for any valid variable path, including ones that contain brackets or even ones that are not tables
- Tab completion no longer returns attributes that are not valid identifiers

There's also a new mechanism for userdata to hook into the tab completion using a metafunction.
At present no userdata uses this mechanism, so it is untested.





More information about the Commits mailing list