Issue #150 resolved

Selecting text in minibuffer causes odd state behavior

epich avatarepich created an issue
I entered the minibuffer by:
   M-x load-file
I'm then given a default path which I want to delete.  I decided to select it using:
   Shift-Home

The selection put me in an unintuitive non insert state in the minibuffer.  When using Vim I've never witnessed its minibuffer show bimodal behavior.

To see if this was perhaps a feature rather than a bug, I tried the same thing in the editting buffer.
   A
   Shift-Home
Unlike the minibuffer, this sequence kept me in the insert state.  This inconsistency leads me to think the minibuffer behavior is a bug.

Comments (2)

  1. Frank Fischer

    Register visual hooks only in buffers with activated evil

    The function `evil-visual-activate-hook' is registered must be registered as `activate-mark-hook'. This should happen only localy in buffers where evil is activated. Otherwise the activation of the region could enable evil (in visual state) even in buffers that should not have evil enabled (e.g., the minibuffer).

    The old behavior registered this hook globally. Not it is a buffer-local hook. This fixes #150.

    4f1dc70d2abc

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.