From a663f0b94164af797395f93f556d0a14e887b16a Mon Sep 17 00:00:00 2001 From: nadrad Date: Sat, 29 Oct 2022 11:07:11 +0200 Subject: [PATCH] won't delete the node when shift+e is cancelled --- h-m-m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h-m-m b/h-m-m index e51da41..4c071cf 100755 --- a/h-m-m +++ b/h-m-m @@ -1435,7 +1435,7 @@ function edit_node(&$mm, $rewrite = false) $output === false or $output === '' ) - && $title === '' + && $mm['nodes'][ $mm['active_node'] ]['title'] === '' && $mm['nodes'][ $mm['active_node'] ]['is_leaf'] ) {