Skip to content

Commit 7d6c434

Browse files
committed
save ctrl+z snapshots when drawing lines, boxes, and flood fill too
1 parent 0332896 commit 7d6c434

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2945,6 +2945,7 @@ int main(int argc, char *argv[])
29452945
//flood fill
29462946
else if ((sdl_mod & (KMOD_CTRL)) && (sdl_mod & (KMOD_SHIFT)) && !(sdl_mod & (KMOD_ALT)) && (!is_TOOL(c) || c==SPC_PROP))
29472947
{
2948+
ctrlzSnapshot();
29482949
if (sdl_mod & (KMOD_CAPS))
29492950
c = 0;
29502951
if (c == DECO_DRAW || c == DECO_ERASE)
@@ -3027,6 +3028,7 @@ int main(int argc, char *argv[])
30273028
{
30283029
if (lb && lm) //lm is box/line tool
30293030
{
3031+
ctrlzSnapshot();
30303032
c = (lb&1) ? sl : sr;
30313033
if (is_DECOTOOL(sl) && lb == 4)
30323034
c = DECO_ERASE;

0 commit comments

Comments
 (0)