Created
December 8, 2015 20:03
-
-
Save warmist/fe674d7df5b4344b449d to your computer and use it in GitHub Desktop.
A requested change for ragundo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index 2afca8f..fe7139d 100644 | |
--- "a/Temp\\TortoiseGit\\gm-26AD.tmp\\gm-editor-b58ccc9-left.lua" | |
+++ "b/DFHack\\scripts\\gui\\gm-editor.lua" | |
@@ -324,6 +324,11 @@ function getStringValue(trg,field) | |
local text=tostring(obj[field]) | |
pcall(function() | |
+ if require'utils'.is_container(obj[field]) then | |
+ if #obj[field]==0 then | |
+ text="<empty> "..text | |
+ end | |
+ end | |
if obj._field ~= nil then | |
local enum=obj:_field(field)._type | |
if enum._kind=="enum-type" then |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment