mirror of
https://github.com/mawww/kakoune.git
synced 2024-08-17 00:30:26 +03:00
Merge remote-tracking branch 'krobelus/validate-empty-prompt'
This commit is contained in:
commit
4bb1f17928
@ -866,7 +866,8 @@ void regex_prompt(Context& context, String prompt, char reg, T func)
|
||||
RegisterManager::instance()[reg].set(context, str.str());
|
||||
break;
|
||||
case PromptEvent::Validate:
|
||||
RegisterManager::instance()[reg].set(context, str.str());
|
||||
if (not str.empty())
|
||||
RegisterManager::instance()[reg].set(context, str.str());
|
||||
context.push_jump();
|
||||
break;
|
||||
}
|
||||
|
@ -1,10 +1,13 @@
|
||||
ui_out -ignore 7
|
||||
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "i" ] }'
|
||||
ui_out -ignore 4
|
||||
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "a" ] }'
|
||||
ui_out -ignore 8
|
||||
ui_out -ignore 4
|
||||
ui_in '{ "jsonrpc": "2.0", "method": "mouse_press", "params": [ "left", 0, 2 ] }'
|
||||
ui_out -ignore 4
|
||||
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "b" ] }'
|
||||
ui_out -ignore 8
|
||||
ui_out -ignore 4
|
||||
ui_in '{ "jsonrpc": "2.0", "method": "mouse_release", "params": [ "left", 0, 4 ] }'
|
||||
ui_out -ignore 4
|
||||
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "c<esc>" ] }'
|
||||
ui_out -ignore 1
|
||||
ui_out -ignore 4
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
abab
|
@ -0,0 +1 @@
|
||||
a a
|
@ -0,0 +1,7 @@
|
||||
ui_out -ignore 7
|
||||
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "xsa<ret>" ] }'
|
||||
ui_out -ignore 6
|
||||
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "xs<ret>" ] }'
|
||||
ui_out -ignore 5
|
||||
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "xs<ret>" ] }'
|
||||
ui_out -ignore 5
|
Loading…
Reference in New Issue
Block a user