A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/a783cdd68d4f2d282725ea60e869ddf639930dc3 below:

spam \n in Ex mode only if in Cmdline mode (#17977) · neovim/neovim@a783cdd · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+14

-1

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+14

-1

lines changed Original file line number Diff line number Diff line change

@@ -2330,7 +2330,7 @@ static int vgetorpeek(bool advance)

2330 2330

// cmdline window.

2331 2331

if (p_im && (State & INSERT)) {

2332 2332

c = Ctrl_L;

2333 -

} else if (exmode_active) {

2333 +

} else if ((State & CMDLINE) && exmode_active) {

2334 2334

c = '\n';

2335 2335

} else if ((State & CMDLINE) || (cmdwin_type > 0 && tc == ESC)) {

2336 2336

c = Ctrl_C;

Original file line number Diff line number Diff line change

@@ -0,0 +1,13 @@

1 +

local helpers = require('test.functional.helpers')(after_each)

2 +

local clear = helpers.clear

3 +

local feed = helpers.feed

4 +

local expect = helpers.expect

5 + 6 +

before_each(clear)

7 + 8 +

describe(':normal', function()

9 +

it('can get out of Insert mode if called from Ex mode #17924', function()

10 +

feed('gQnormal! Ifoo<CR>')

11 +

expect('foo')

12 +

end)

13 +

end)

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