8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f78ff46 commit c47e6dbCopy full SHA for c47e6db
doc/pymode.txt
@@ -209,10 +209,10 @@ Key Command
209
]] Jump to next class or function (normal, visual, operator modes)
210
[M Jump to previous class or method (normal, visual, operator modes)
211
]M Jump to next class or method (normal, visual, operator modes)
212
-aC Select a class. Ex: vaC, daC, yaC, caC (normal, operator modes)
213
-iC Select inner class. Ex: viC, diC, yiC, ciC (normal, operator modes)
214
-aM Select a function or method. Ex: vaM, daM, yaM, caM (normal, operator modes)
215
-iM Select inner function or method. Ex: viM, diM, yiM, ciM (normal, operator modes)
+aC Select a class. Ex: vaC, daC, yaC, caC (operator modes)
+iC Select inner class. Ex: viC, diC, yiC, ciC (operator modes)
+aM Select a function or method. Ex: vaM, daM, yaM, caM (operator modes)
+iM Select inner function or method. Ex: viM, diM, yiM, ciM (operator modes)
216
==== ============================
217
218
Enable pymode-motion *'g:pymode_motion'*
pymode/rope.py
@@ -924,13 +924,17 @@ def _insert_import(name, module, ctx):
924
@env.catch_exceptions
925
def select_logical_line():
926
source, offset = env.get_offset_params()
927
+ count = int(env.var('v:count1'))
928
929
lines = codeanalyze.SourceLinesAdapter(source)
- lineno = lines.get_line_number(offset)
930
+ start_line = lines.get_line_number(offset)
931
line_finder = codeanalyze.LogicalLineFinder(lines)
- start, end = line_finder.logical_line_in(lineno)
932
933
- env.select_line(start, end)
+ start_lineno, _ = line_finder.logical_line_in(start_line)
934
+ for _, (_, end_lineno) in zip(range(count), line_finder.generate_regions(start_line)):
935
+ pass
936
+
937
+ env.select_line(start_lineno, end_lineno)
938
939
940
# Monkey patch Rope
0 commit comments