Ejemplo n.º 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
Ejemplo n.º 2
0
			def strwidth(string):
				return vim.strwidth(string)
Ejemplo n.º 3
0
			def strwidth(string):
				# Does not work with tabs, but neither is strwidth from default 
				# renderer
				return vim.strwidth(string.encode('utf-8'))
Ejemplo n.º 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'))
Ejemplo n.º 5
0
 def strwidth(string):
     return vim.strwidth(string)
Ejemplo n.º 6
0
 def strwidth(string):
     # Does not work with tabs, but neither is strwidth from default
     # renderer
     return vim.strwidth(string.encode('utf-8'))
Ejemplo n.º 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'))