+18
-1
lines changedFilter options
+18
-1
lines changed Original file line number Diff line number Diff line change
@@ -180,7 +180,7 @@ char *get_mode(void)
180
180
buf[1] = 'x';
181
181
}
182
182
}
183
-
} else if (State & CMDLINE) {
183
+
} else if ((State & CMDLINE) || exmode_active) {
184
184
buf[0] = 'c';
185
185
if (exmode_active) {
186
186
buf[1] = 'v';
Original file line number Diff line number Diff line change
@@ -224,6 +224,23 @@ describe('startup', function()
224
224
end
225
225
end)
226
226
227
+
it('-e sets ex mode', function()
228
+
local screen = Screen.new(25, 3)
229
+
clear('-e')
230
+
screen:attach()
231
+
-- Verify we set the proper mode both before and after :vi.
232
+
feed("put =mode(1)<CR>vi<CR>:put =mode(1)<CR>")
233
+
screen:expect([[
234
+
cv |
235
+
^n |
236
+
:put =mode(1) |
237
+
]])
238
+
239
+
eq('cv\n',
240
+
funcs.system({nvim_prog, '-n', '-es' },
241
+
{ 'put =mode(1)', 'print', '' }))
242
+
end)
243
+
227
244
it('fails on --embed with -es/-Es', function()
228
245
matches('nvim[.exe]*: %-%-embed conflicts with %-es/%-Es',
229
246
funcs.system({nvim_prog, '--embed', '-es' }))
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4