Hi Bram and list,
Cannot change the terminal window height by dragging its statusline bar when
current window is terminal window. (GUI only)
Step to reproduce:
- Run gui vim with term
$ vim -g --clean +term
- Move up and down while dragging terminal window's statusline with mouse.
Expected behavior:
- Window height changes.
Actual behavior:
- Not changes.
I attached a patch.
BTW, do we not need to add the following modes to the 'mouse' option?
t Terminal-Job mode
if need to added, We will have to review the get_real_state() related code.
if not, I think that it is necessary to modify the document like below.
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 28b5457..e7b1569 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -5336,7 +5336,7 @@ A jump table for the options with a short description can
be found at |Q_op|.
sysmouse and Linux console with gpm). For using the mouse in the
GUI, see |gui-mouse|.
The mouse can be enabled for different modes:
- n Normal mode
+ n Normal mode, Terminal-Normal mode and Terminal-Job mode
v Visual mode
i Insert mode
c Command-line mode
--
Best regards,
Hirohito Higashi (h_east)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/gui.c b/src/gui.c
index 74e2c83..2ce3009 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -3118,15 +3118,18 @@ button_set:
{
case NORMAL_BUSY:
case OP_PENDING:
+# ifdef FEAT_TERMINAL
+ case TERMINAL:
+# endif
case NORMAL: checkfor = MOUSE_NORMAL; break;
case VISUAL: checkfor = MOUSE_VISUAL; break;
case SELECTMODE: checkfor = MOUSE_VISUAL; break;
case REPLACE:
case REPLACE+LANGMAP:
-#ifdef FEAT_VREPLACE
+# ifdef FEAT_VREPLACE
case VREPLACE:
case VREPLACE+LANGMAP:
-#endif
+# endif
case INSERT:
case INSERT+LANGMAP: checkfor = MOUSE_INSERT; break;
case ASKMORE: