aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-28 18:37:29 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-28 20:09:14 +0100
commit30e9673fdb22905df853ef07b3826fa19b28831c (patch)
tree1b5fba8cdd110228df92972660eab026ab1e879a /vis.h
parentd6a2d5bea9364dfecefecef084671b2c7fc1dc8a (diff)
downloadvis-30e9673fdb22905df853ef07b3826fa19b28831c.tar.gz
vis-30e9673fdb22905df853ef07b3826fa19b28831c.tar.xz
vis: improve switching to prompt mode
A call to vis_prompt_show will now automatically switch to prompt mode. Within the prompt leave/enter handlers the focused window (vis->win) will still point to the document window not the one referring to the prompt. The selection marks '< and '> are now only updated when a visual mode is left.
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis.h b/vis.h
index 2e8d584..0f984ed 100644
--- a/vis.h
+++ b/vis.h
@@ -106,7 +106,7 @@ void vis_exit(Vis*, int status);
/* emergency exit, print given message, perform minimal ui cleanup and exit process */
void vis_die(Vis*, const char *msg, ...) __attribute__((noreturn));
-/* user facing modes are: NORMAL, VISUAL, VISUAL_LINE, PROMPT, INSERT, REPLACE.
+/* user facing modes are: NORMAL, VISUAL, VISUAL_LINE, INSERT, REPLACE.
* the others should be considered as implementation details (TODO: do not expose them?) */
enum VisMode {
VIS_MODE_BASIC,