Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zle: vi mode: wrong undo handling on fresh lines
On Jan 29, 11:50am, Oliver Kiddle wrote:
}
} It occurs to me that for a blank line 'o' is just as valid as either 'i'
} or 'a' but possibly more useful.
I like that idea.
} > } > Is it OK to assume we're not in insert mode when vi-repeat is executed?
}
} Having played with this in various combinations, I think we should just
} start virepeatchange() with:
} if (!invicmdmode())
} return 1;
I tend to agree, but I wonder (below):
} > One doc example for zle-line-init still implies you can get into vi
} > command mode by "zle -K vicmd".
}
} That does skip the code I added and some other vi-change related code
} but I'm somewhat inclined to think it should stay that way
Does "zle -K vicmd" also skip things that would make the invicmdmode()
test (above) either insufficient or incorrect?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author