From d08245c3dfbfac71ae1b5a66038225b55a1e42db Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 14 Dec 2020 03:51:24 +0100 Subject: [PATCH] v0.6.1 --- copyparty/__version__.py | 4 ++-- copyparty/web/md2.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/copyparty/__version__.py b/copyparty/__version__.py index c434d75a..c67474ac 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,8 +1,8 @@ # coding: utf-8 -VERSION = (0, 6, 0) +VERSION = (0, 6, 1) CODENAME = "CHRISTMAAAAAS" -BUILD_DT = (2020, 12, 1) +BUILD_DT = (2020, 12, 14) S_VERSION = ".".join(map(str, VERSION)) S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT) diff --git a/copyparty/web/md2.js b/copyparty/web/md2.js index 93b6d715..d78594e2 100644 --- a/copyparty/web/md2.js +++ b/copyparty/web/md2.js @@ -660,6 +660,10 @@ function md_backspace() { if (/^\s*$/.test(left)) return true; + // same if selection + if (o0 != dom_src.selectionEnd) + return true; + // same if line is all-whitespace or non-markup var v = m[0].replace(/[^ ]/g, " "); if (v === m[0] || v.length !== left.length)