A RetroSearch Logo

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

Search Query:

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

do not save K_EVENT as lastc in Insert mode · neovim/neovim@ab1ceaa · GitHub

@@ -1154,8 +1154,8 @@ describe('API', function()

1154 1154

end)

1155 1155

end)

1156 1156 1157 -

describe('RPC (K_EVENT) #6166', function()

1158 -

it('does not complete ("interrupt") normal-mode operator-pending', function()

1157 +

describe('RPC (K_EVENT)', function()

1158 +

it('does not complete ("interrupt") normal-mode operator-pending #6166', function()

1159 1159

helpers.insert([[

1160 1160

FIRST LINE

1161 1161

SECOND LINE]])

@@ -1191,7 +1191,7 @@ describe('API', function()

1191 1191

]])

1192 1192

end)

1193 1193 1194 -

it('does not complete ("interrupt") normal-mode map-pending', function()

1194 +

it('does not complete ("interrupt") normal-mode map-pending #6166', function()

1195 1195

command("nnoremap dd :let g:foo='it worked...'<CR>")

1196 1196

helpers.insert([[

1197 1197

FIRST LINE

@@ -1207,7 +1207,8 @@ describe('API', function()

1207 1207

SECOND LINE]])

1208 1208

eq('it worked...', helpers.eval('g:foo'))

1209 1209

end)

1210 -

it('does not complete ("interrupt") insert-mode map-pending', function()

1210 + 1211 +

it('does not complete ("interrupt") insert-mode map-pending #6166', function()

1211 1212

command('inoremap xx foo')

1212 1213

command('set timeoutlen=9999')

1213 1214

helpers.insert([[

@@ -1222,6 +1223,37 @@ describe('API', function()

1222 1223

FIRST LINE

1223 1224

SECOND LINfooE]])

1224 1225

end)

1226 + 1227 +

it('does not interrupt Insert mode i_CTRL-O #10035', function()

1228 +

feed('iHello World<c-o>')

1229 +

eq({mode='niI', blocking=false}, meths.get_mode()) -- fast event

1230 +

eq(2, eval('1+1')) -- causes K_EVENT key

1231 +

eq({mode='niI', blocking=false}, meths.get_mode()) -- still in ctrl-o mode

1232 +

feed('dd')

1233 +

eq({mode='i', blocking=false}, meths.get_mode()) -- left ctrl-o mode

1234 +

expect('') -- executed the command

1235 +

end)

1236 + 1237 +

it('does not interrupt Select mode v_CTRL-O #15688', function()

1238 +

feed('iHello World<esc>gh<c-o>')

1239 +

eq({mode='vs', blocking=false}, meths.get_mode()) -- fast event

1240 +

eq({mode='vs', blocking=false}, meths.get_mode()) -- again #15288

1241 +

eq(2, eval('1+1')) -- causes K_EVENT key

1242 +

eq({mode='vs', blocking=false}, meths.get_mode()) -- still in ctrl-o mode

1243 +

feed('^')

1244 +

eq({mode='s', blocking=false}, meths.get_mode()) -- left ctrl-o mode

1245 +

feed('h')

1246 +

eq({mode='i', blocking=false}, meths.get_mode()) -- entered insert mode

1247 +

expect('h') -- selection is the whole line and is replaced

1248 +

end)

1249 + 1250 +

it('does not interrupt Insert mode i_0_CTRL-D #13997', function()

1251 +

command('set timeoutlen=9999')

1252 +

feed('i<Tab><Tab>a0')

1253 +

eq(2, eval('1+1')) -- causes K_EVENT key

1254 +

feed('<C-D>')

1255 +

expect('a') -- recognized i_0_CTRL-D

1256 +

end)

1225 1257

end)

1226 1258 1227 1259

describe('nvim_get_context', function()


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