1. Frank Fischer
  2. evil
  3. Issues
Issue #169 resolved

Numbered block indenting indents once

created an issue

In several major modes including Python, Java, and text, I find {{{2>}}} doesn't indent a block of code twice.

For example: foo.txt {{{ aaa bbb ccc }}}

I highlight bbb and ccc and do {{{2>}}}. It indents as though I had done {{{>}}}. If I do {{{>}}}, select the same text, and {{{>}}} again then it indents twice as expected.

I witness this after rebuilding the latest and using a minimal .emacs . My hg tip is changeset: 1051:374ea7a251a4

Comments (2)

  1. Frank Fischer repo owner

    This is because > is an operator and usually the count of an operator is handled by the motion used to specify the range (e.g. 2>> does not indent the current line twice but two lines once).

    If the operator is called from visual state then the count has not been handled by a motion because the range is not specified by a motion but by the visual selection. Thus count is "free" for the operator. But this has not been implemented, yet (although it's not difficult).

  2. Frank Fischer repo owner

    Make shift operators handle count in visual state

    In visual state operators may deal with the command count on their own because that count is not used by the motion to specify the range. Shift operators interpret the count as usual repeat count. This fixes #169.

    Wiki macro error: Changeset c458644459bf not found.

  3. Log in to comment