vim-web 0.3.44-dev.15 → 0.3.44-dev.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75888,19 +75888,15 @@ Averrage Date/Second ${avgDataRatePS} kb
75888
75888
  const boxRef = React2.useRef(adapter.getBox());
75889
75889
  enable.useOnChange((v) => {
75890
75890
  visible2.set(v);
75891
- auto.set(false);
75892
75891
  showOffsetPanel.set(false);
75893
- topOffset.set("1");
75894
- sideOffset.set("1");
75895
- bottomOffset.set("1");
75896
- void sectionReset.call();
75892
+ if (v && auto.get()) {
75893
+ sectionSelection.call();
75894
+ } else {
75895
+ sectionReset.call();
75896
+ }
75897
75897
  });
75898
- auto.useValidate((v) => v && enable.get());
75899
75898
  visible2.useValidate((v) => enable.get() && v);
75900
75899
  showOffsetPanel.useValidate((v) => enable.get() && v);
75901
- topOffset.useValidate((v) => enable.get() ? sanitize(v, false) : "1");
75902
- sideOffset.useValidate((v) => enable.get() ? sanitize(v, false) : "1");
75903
- bottomOffset.useValidate((v) => enable.get() ? sanitize(v, false) : "1");
75904
75900
  topOffset.useConfirm((v) => sanitize(v, true));
75905
75901
  sideOffset.useConfirm((v) => sanitize(v, true));
75906
75902
  bottomOffset.useConfirm((v) => sanitize(v, true));
@@ -75913,7 +75909,7 @@ Averrage Date/Second ${avgDataRatePS} kb
75913
75909
  visible2.useOnChange((v) => adapter.setVisible(v));
75914
75910
  React2.useEffect(() => {
75915
75911
  return adapter.onSelectionChanged.sub(() => {
75916
- if (auto.get()) sectionSelection.call();
75912
+ if (auto.get() && enable.get()) sectionSelection.call();
75917
75913
  });
75918
75914
  }, []);
75919
75915
  const section = useArgActionRef((baseBox) => {