8000 Merge pull request #348 from blueyed/develop · python-mode/python-mode@e6a8d55 · GitHub
[go: up one dir, main page]

Skip to content

Commit e6a8d55

Browse files
committed
Merge pull request #348 from blueyed/develop
Fix multibyte fold-&fillchar; typo
2 parents 874c8da + 8a10b96 commit e6a8d55

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

autoload/pymode/folding.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ let s:decorator_regex = '^\s*@'
77
let s:doc_begin_regex = '^\s*\%("""\|''''''\)'
88
let s:doc_end_regex = '\%("""\|''''''\)\s*$'
99
let s:doc_line_regex = '^\s*\("""\|''''''\).\+\1\s*$'
10-
let s:symbol = ' '
11-
if stridx(&fillchars, 'fold') > -1
12-
let s:symbol = strpart(&fillchars, stridx(&fillchars, 'fold') + 5, 1)
10+
let s:symbol = matchstr(&fillchars, 'fold:\zs.') " handles multibyte characters
11+
if s:symbol == ''
12+
let s:symbol = ' '
1313
endif
1414

1515

pymode/rope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def autoimport():
327327
_insert_import(word, modules[0], ctx)
328328

329329
else:
330-
module = env.user_input_choices('Wich module to import:', *modules)
330+
module = env.user_input_choices('Which module to import:', *modules)
331331
_insert_import(word, module, ctx)
332332

333333
return True

0 commit comments

Comments
 (0)
0