Beispiel #1
0
 def _deco_task_line(self, line):
     if line.rfind(self.SKULD_TASK_SEPERATOR) >= 0:
         return line
     else:
         set_line_width = vim.vars.get('skuld_line_width', 29)
         line_width = vim.strwidth(line)
         if line_width < set_line_width:
             line += ' ' * (set_line_width - line_width)
         return line + self.SKULD_TASK_SEPERATOR
Beispiel #2
0
			def strwidth(string):
				return vim.strwidth(string)
Beispiel #3
0
			def strwidth(string):
				# Does not work with tabs, but neither is strwidth from default 
				# renderer
				return vim.strwidth(string.encode('utf-8'))
Beispiel #4
0
			def strwidth(self, string):
				# Does not work with tabs, but neither is strwidth from default 
				# renderer
				return vim.strwidth(string.encode(self.encoding, 'replace'))
Beispiel #5
0
 def strwidth(string):
     return vim.strwidth(string)
Beispiel #6
0
 def strwidth(string):
     # Does not work with tabs, but neither is strwidth from default
     # renderer
     return vim.strwidth(string.encode('utf-8'))
Beispiel #7
0
			def strwidth(self, string):
				# Does not work with tabs, but neither is strwidth from default 
				# renderer
				return vim.strwidth(string.encode(self.encoding, 'replace'))