aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sciteco.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-16 00:15:33 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-16 00:15:33 +0300
commit4794367ce0c31f820bf2bd72d44c886984e3f7ed (patch)
tree1cfcdfe5c394240fe728d7f959a7cac636df478d /src/sciteco.h
parent21e775679f6a06a07568261eec1e2771d49adf63 (diff)
downloadsciteco-4794367ce0c31f820bf2bd72d44c886984e3f7ed.tar.gz
the primary clipboard is now chosen by the 10th bit in the ED flags
* `[q]~` was broken and resulted in crashes since it reset the clipboard character to 0. In fact, if we don't want to break the `[a]b` idiom we cannot use the numeric cell of register `~`. * Therefore we no longer use the numeric part of register `~`. Once the clipboard registers are initialized they completely replace any existing register with the same name that may have been set in the profile. So we still don't leak any memory. (But perhaps it would now be better to fail with an error if one of the clipboard registers already exist?) * Instead, bit 10 (1024) of ED is now used to change the default clipboard to the primary selection. The alternative might have been an EJ flag or even a special register containing the name of the default clipboard register. * partially reverses 8c6de6cc718debf44f6056a4c34c4fbb13bc5020
Diffstat (limited to 'src/sciteco.h')
-rw-r--r--src/sciteco.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sciteco.h b/src/sciteco.h
index 4868303..2dc4749 100644
--- a/src/sciteco.h
+++ b/src/sciteco.h
@@ -92,7 +92,8 @@ enum {
TECO_ED_MOUSEKEY = (1 << 6),
TECO_ED_SHELLEMU = (1 << 7),
TECO_ED_OSC52 = (1 << 8),
- TECO_ED_ICONS = (1 << 9)
+ TECO_ED_ICONS = (1 << 9),
+ TECO_ED_CLIP_PRIMARY = (1 << 10)
};
/* in main.c */