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
def strwidth(string): return vim.strwidth(string)
def strwidth(string): # Does not work with tabs, but neither is strwidth from default # renderer return vim.strwidth(string.encode('utf-8'))
def strwidth(self, string): # Does not work with tabs, but neither is strwidth from default # renderer return vim.strwidth(string.encode(self.encoding, 'replace'))