Merge pull request #620 from glowing-bear/noswitch

Use -noswitch option to open buffers
This commit is contained in:
Tor Hveem 2015-09-17 09:05:35 +02:00
commit cf771eb73f
5 changed files with 15 additions and 6 deletions

View file

@ -463,7 +463,7 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter)
* @return active buffer pointer (WeeChat 1.0+) or fullname (older versions)
*/
this.getActiveBufferReference = function() {
if (this.version !== null && parseInt(this.version.charAt(0)) >= 1) {
if (this.version !== null && this.version[0] >= 1) {
// pointers are being validated, they're more reliable than
// fullName (e.g. if fullName contains spaces)
return "0x"+activeBuffer.id;