vim-pad

minimal etherpad alternative - vim plugin
git clone https://git.ce9e.org/vim-pad.git

commit
8818475958cc64d8a7df17d9929ea3fe78c4917f
parent
9216eaac551c7a549c428b35fcbba56c56bfc15d
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-09-06 12:19
ignore input if nothing changed

Diffstat

M python/pad/__init__.py 7 ++++---

1 files changed, 4 insertions, 3 deletions


diff --git a/python/pad/__init__.py b/python/pad/__init__.py

@@ -59,9 +59,10 @@ class Pad:
   59    59 
   60    60     def on_input(self):
   61    61         text = self.get_text()
   62    -1         change = diff.diff(self.old, text, 3)
   63    -1         diff.push_change(self.local_changes, change)
   64    -1         self.old = text
   -1    62         if text != self.old:
   -1    63             change = diff.diff(self.old, text, 3)
   -1    64             diff.push_change(self.local_changes, change)
   -1    65             self.old = text
   65    66 
   66    67     def send_changes(self):
   67    68         if self.staged_changes: