vim-pad

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

commit
64535efb59d2dd79b7c1fc753a193366872f7105
parent
afc134c73ed0ec8cabf0484bfd08a294a82a6be1
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-05-29 15:10
set modified on correct buffer

Diffstat

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

1 files changed, 2 insertions, 4 deletions


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

@@ -88,10 +88,8 @@ class Pad:
   88    88 			self.old = text
   89    89 
   90    90 	def reset_modified(self):
   91    -1 		if self.local_changes or self.staged_changes:
   92    -1 			vim.command('setl modified')
   93    -1 		else:
   94    -1 			vim.command('setl nomodified')
   -1    91 		mod = bool(self.local_changes or self.staged_changes)
   -1    92 		self.buffer.options['modified'] = mod
   95    93 
   96    94 
   97    95 def get_buffer():