A RetroSearch Logo

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

Search Query:

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

ignore left-release mouse action · neovim/neovim@c96f7e2 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+12

-0

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+12

-0

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

@@ -1296,6 +1296,12 @@ static bool send_mouse_event(Terminal *term, int c)

1296 1296

return mouse_win == curwin;

1297 1297

}

1298 1298 1299 +

// ignore left release action if it was not proccessed above

1300 +

// to prevent leaving Terminal mode after entering to it using a mouse

1301 +

if (c == K_LEFTRELEASE && mouse_win->w_buffer->terminal == term) {

1302 +

return false;

1303 +

}

1304 + 1299 1305

end:

1300 1306

ins_char_typebuf(c);

1301 1307

return true;

Original file line number Diff line number Diff line change

@@ -45,6 +45,12 @@ describe(':terminal mouse', function()

45 45

eq('nt', eval('mode(1)'))

46 46

end)

47 47 48 +

it('does not leave terminal mode on left-release', function()

49 +

if helpers.pending_win32(pending) then return end

50 +

feed('<LeftRelease>')

51 +

eq('t', eval('mode(1)'))

52 +

end)

53 + 48 54

describe('with mouse events enabled by the program', function()

49 55

before_each(function()

50 56

thelpers.enable_mouse()

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