Skip to content

Commit

Permalink
fixed case sensitive
Browse files Browse the repository at this point in the history
The change logic that evaluates edits made in node details was exiting
when two strings were equal. Fixed it so it's case sensitive now.
  • Loading branch information
matthewmaier committed Apr 18, 2017
1 parent e4bccc4 commit 63c6f24
Show file tree
Hide file tree
Showing 98 changed files with 1,946 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,15 @@ command changeInfo @pMain,pBlerg
else
-- put pMain[pDoc][0][lastKey] into tRec -- this order makes it work better
put getTagData(pMain,pBlerg) into tOld
set the caseSensitive to true
if tOld = pData then
exit changeInfo -- they're the same, so don't bother changing anything
else if tOld is not empty then
-- negate node's old tag
put getTagKey(pMain,pBlerg) into tOldTag
put cr & "-" & tOldTag & "," & tRec+1 after pMain[pDoc][pRec]["step"]
end if
set the caseSensitive to false
-- create turn
put tRec+2 & "," & tRec+1 into pMain[pDoc][tRec+1]["turn"]
put "changeInfo" into pMain[pDoc][tRec+1]["act"]
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,15 @@ command changeInfo @pMain,pBlerg
else
-- put pMain[pDoc][0][lastKey] into tRec -- this order makes it work better
put getTagData(pMain,pBlerg) into tOld
set the caseSensitive to true
if tOld = pData then
exit changeInfo -- they're the same, so don't bother changing anything
else if tOld is not empty then
-- negate node's old tag
put getTagKey(pMain,pBlerg) into tOldTag
put cr & "-" & tOldTag & "," & tRec+1 after pMain[pDoc][pRec]["step"]
end if
set the caseSensitive to false
-- create turn
put tRec+2 & "," & tRec+1 into pMain[pDoc][tRec+1]["turn"]
put "changeInfo" into pMain[pDoc][tRec+1]["act"]
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,15 @@ command changeInfo @pMain,pBlerg
else
-- put pMain[pDoc][0][lastKey] into tRec -- this order makes it work better
put getTagData(pMain,pBlerg) into tOld
set the caseSensitive to true
if tOld = pData then
exit changeInfo -- they're the same, so don't bother changing anything
else if tOld is not empty then
-- negate node's old tag
put getTagKey(pMain,pBlerg) into tOldTag
put cr & "-" & tOldTag & "," & tRec+1 after pMain[pDoc][pRec]["step"]
end if
set the caseSensitive to false
-- create turn
put tRec+2 & "," & tRec+1 into pMain[pDoc][tRec+1]["turn"]
put "changeInfo" into pMain[pDoc][tRec+1]["act"]
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,15 @@ command changeInfo @pMain,pBlerg
else
-- put pMain[pDoc][0][lastKey] into tRec -- this order makes it work better
put getTagData(pMain,pBlerg) into tOld
set the caseSensitive to true
if tOld = pData then
exit changeInfo -- they're the same, so don't bother changing anything
else if tOld is not empty then
-- negate node's old tag
put getTagKey(pMain,pBlerg) into tOldTag
put cr & "-" & tOldTag & "," & tRec+1 after pMain[pDoc][pRec]["step"]
end if
set the caseSensitive to false
-- create turn
put tRec+2 & "," & tRec+1 into pMain[pDoc][tRec+1]["turn"]
put "changeInfo" into pMain[pDoc][tRec+1]["act"]
Expand Down
Binary file not shown.
1,936 changes: 1,936 additions & 0 deletions Howstr_Desktop_Beta/debug.log

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Howstr_Desktop_Beta/software/grapherrific.livecode
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,15 @@ command changeInfo @pMain,pBlerg
else
-- put pMain[pDoc][0][lastKey] into tRec -- this order makes it work better
put getTagData(pMain,pBlerg) into tOld
set the caseSensitive to true
if tOld = pData then
exit changeInfo -- they're the same, so don't bother changing anything
else if tOld is not empty then
-- negate node's old tag
put getTagKey(pMain,pBlerg) into tOldTag
put cr & "-" & tOldTag & "," & tRec+1 after pMain[pDoc][pRec]["step"]
end if
set the caseSensitive to false
-- create turn
put tRec+2 & "," & tRec+1 into pMain[pDoc][tRec+1]["turn"]
put "changeInfo" into pMain[pDoc][tRec+1]["act"]
Expand Down
Binary file modified Howstr_Desktop_Beta/software/repowrangler.livecode
Binary file not shown.

0 comments on commit 63c6f24

Please sign in to comment.