summaryrefslogtreecommitdiffstats
path: root/src/gram.y
diff options
context:
space:
mode:
authormikeymell <mikeymell@users.noreply.github.com>2018-07-24 11:16:01 +0300
committermikeymell <mikeymell@users.noreply.github.com>2018-07-24 11:16:01 +0300
commit77a3ccdb915fa23ed3be35e06abce303a3a3a522 (patch)
tree7a545557ad2d121b2a9587b80896442e7cc48600 /src/gram.y
parente90a99ada888ac6199becd7dd1487b33a4e36af5 (diff)
Call write triggers on value clear
Diffstat (limited to 'src/gram.y')
-rwxr-xr-xsrc/gram.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gram.y b/src/gram.y
index f26ee98..f52ce04 100755
--- a/src/gram.y
+++ b/src/gram.y
@@ -429,6 +429,10 @@ command:
$2.left.vp->flags |= is_changed;
modflg++;
+ // clearing the value counts as a write, so run write triggers
+ if (( $2.left.vp->trigger ) && (($2.left.vp->trigger->flag & TRG_WRITE) == TRG_WRITE))
+ do_trigger($2.left.vp,TRG_WRITE);
+
#ifdef UNDO
copy_to_undostruct($2.left.vp->row, $2.left.vp->col, $2.left.vp->row, $2.left.vp->col, 'a');
// here we save in undostruct, all the ents that depends on the deleted one (after change)