Mercurial > vim
annotate runtime/doc/os_qnx.txt @ 34548:db67c09ccd53 v9.1.0175
patch 9.1.0175: wrong window positions with 'winfix{width,height}'
Commit: https://github.com/vim/vim/commit/5866bc3a0f54115d5982fdc09bdbe4c45069265a
Author: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Date: Wed Mar 13 20:17:24 2024 +0100
patch 9.1.0175: wrong window positions with 'winfix{width,height}'
Problem: winframe functions incorrectly recompute window positions if
the altframe wasn't adjacent to the closed frame, which is
possible if adjacent windows had 'winfix{width,height}' set.
Solution: recompute for windows within the parent of the altframe and
closed frame. Skip this (as before) if the altframe was
top/left, but only if adjacent to the closed frame, as
positions won't change in that case. Also correct the return
value documentation for win_screenpos. (Sean Dewar)
The issue revealed itself after removing the win_comp_pos call below
winframe_restore in win_splitmove. Similarly, wrong positions could result from
windows closed in other tabpages, as win_free_mem uses winframe_remove (at least
until it is entered later, where enter_tabpage calls win_comp_pos).
NOTE: As win_comp_pos handles only curtab, it's possible via other means for
positions in non-current tabpages to be wrong (e.g: after changing 'laststatus',
'showtabline', etc.). Given enter_tabpage recomputes it, maybe it's intentional
as an optimization? Should probably be documented in win_screenpos then, but I
won't address that here.
closes: #14191
Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 13 Mar 2024 20:30:03 +0100 |
parents | 4635e43f2c6f |
children |
rev | line source |
---|---|
34057
4635e43f2c6f
patch 9.1.0000: Vim 9.1 release
Christian Brabandt <cb@256bit.org>
parents:
29314
diff
changeset
|
1 *os_qnx.txt* For Vim version 9.1. Last change: 2005 Mar 29 |
7 | 2 |
3 | |
4 VIM REFERENCE MANUAL by Julian Kinraid | |
5 | |
6 | |
7 *QNX* *qnx* | |
8 | |
9 1. General |qnx-general| | |
10 2. Compiling Vim |qnx-compiling| | |
11 3. Terminal support |qnx-terminal| | |
12 4. Photon GUI |photon-gui| | |
13 5. Photon fonts |photon-fonts| | |
14 6. Bugs & things To Do | |
15 | |
16 ============================================================================== | |
17 | |
18 1. General *qnx-general* | |
19 | |
20 Vim on QNX behaves much like other unix versions. |os_unix.txt| | |
21 | |
22 | |
23 2. Compiling Vim *qnx-compiling* | |
24 | |
236 | 25 Vim can be compiled using the standard configure/make approach. If you want to |
7 | 26 compile for X11, pass the --with-x option to configure. Otherwise, running |
27 ./configure without any arguments or passing --enable-gui=photon, will compile | |
28 vim with the Photon gui support. Run ./configure --help , to find out other | |
29 features you can enable/disable. | |
30 | |
31 | |
32 3. Terminal support *qnx-terminal* | |
33 | |
34 Vim has support for the mouse and clipboard in a pterm, if those options | |
35 are compiled in, which they are normally. | |
36 | |
37 The options that affect mouse support are |'mouse'| and |'ttymouse'|. When | |
38 using the mouse, only simple left and right mouse clicking/dragging is | |
39 supported. If you hold down shift, ctrl, or alt while using the mouse, pterm | |
40 will handle the mouse itself. It will make a selection, separate from what | |
41 vim's doing. | |
42 | |
43 When the mouse is in use, you can press Alt-RightMouse to open the pterm menu. | |
44 To turn the mouse off in vim, set the mouse option to nothing, set mouse= | |
45 | |
46 | |
47 4. Photon GUI *photon-gui* | |
48 | |
49 To start the gui for vim, you need to run either gvim or vim -g, otherwise | |
50 the terminal version will run. For more info - |gui-x11-start| | |
51 | |
52 Supported features: | |
53 :browse command |:browse| | |
54 :confirm command |:confirm| | |
55 Cursor blinking |'guicursor'| | |
56 Menus, popup menus and menu priorities |:menu| | |
57 |popup-menu| | |
58 |menu-priority| | |
59 Toolbar |gui-toolbar| | |
60 |'toolbar'| | |
61 Font selector (:set guifont=*) |photon-fonts| | |
62 Mouse focus |'mousefocus'| | |
63 Mouse hide |'mousehide'| | |
64 Mouse cursor shapes |'mouseshape'| | |
65 Clipboard |gui-clipboard| | |
66 | |
67 Unfinished features: | |
68 Various international support, such as Farsi & Hebrew support, | |
69 different encodings, etc. | |
70 | |
71 This help file | |
72 | |
73 Unsupported features: | |
74 Find & Replace window |:promptfind| | |
75 Tearoff menus | |
76 | |
77 Other things which I can't think of so I can't list them | |
78 | |
79 | |
80 5. Fonts *photon-fonts* | |
81 | |
82 You set fonts in the gui with the guifont option > | |
83 :set guifont=Lucida\ Terminal | |
84 < | |
85 The font must be a monospace font, and any spaces in the font name must be | |
86 escaped with a '\'. The default font used is PC Terminal, size 8. Using | |
87 '*' as the font name will open a standard Photon font selector where you can | |
88 select a font. | |
89 | |
90 Following the name, you can include optional settings to control the size and | |
91 style of the font, each setting separated by a ':'. Not all fonts support the | |
92 various styles. | |
93 | |
94 The options are, | |
95 s{size} Set the size of the font to {size} | |
96 b Bold style | |
97 a Use antialiasing | |
98 i Italic style | |
99 | |
100 Examples: | |
101 | |
102 Set the font to monospace size 10 with antialiasing > | |
103 :set guifont=monospace:s10:a | |
104 < | |
105 Set the font to Courier size 12, with bold and italics > | |
106 :set guifont=Courier:s12:b:i | |
107 < | |
108 Select a font with the requester > | |
109 :set guifont=* | |
110 < | |
111 | |
112 | |
113 6. Bugs & things To Do | |
114 | |
115 Known problems: | |
116 - Vim hangs sometimes when running an external program. Workaround: | |
117 put this line in your |vimrc| file: > | |
118 set noguipty | |
119 | |
120 Bugs: | |
236 | 121 - Still a slight problem with menu highlighting. |
7 | 122 - When using phditto/phinows/etc., if you are using a font that |
123 doesn't support the bold attribute, when vim attempts to draw | |
124 bold text it will be all messed up. | |
125 - The cursor can sometimes be hard to see. | |
236 | 126 - A number of minor problems that can fixed. :) |
7 | 127 |
128 Todo: | |
129 - Improve multi-language support. | |
130 - Options for setting the fonts used in the menu and toolbar. | |
131 - Find & Replace dialog. | |
132 - The clientserver features. | |
133 - Maybe tearoff menus. | |
134 | |
135 - Replace usage of fork() with spawn() when launching external | |
136 programs. | |
137 | |
14519 | 138 vim:tw=78:sw=4:ts=8:noet:ft=help:norl: |