Sfoglia il codice sorgente

clear last saved cursor when pressing esc

Tienson Qin 3 anni fa
parent
commit
019160f32a
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/main/frontend/state.cljs

+ 2 - 1
src/main/frontend/state.cljs

@@ -873,7 +873,8 @@
   []
   (swap! state merge {:editor/editing? nil
                       :editor/block    nil
-                      :cursor-range    nil}))
+                      :cursor-range    nil
+                      :editor/last-saved-cursor nil}))
 
 (defn into-code-editor-mode!
   []